Skip to content
Snippets Groups Projects
Commit fde5cd6d authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

RelationObject condition

parent b57203a7
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("system.translate");
import("system.vars");
import("system.db");
......@@ -187,7 +186,6 @@ SqlCondition.prototype.orPrepare = function(field, value, cond, fieldType) {
* @return {SqlCondition} current SqlCondition-object
*/
SqlCondition.prototype.andPrepareVars = function(field, variable, cond, fieldType) {
logging.log("andPrepareVars " + variable)
variable = this._checkVars(variable)
if (variable) {
return this.andPrepare(field, variable, cond, fieldType);
......@@ -210,7 +208,6 @@ SqlCondition.prototype.andPrepareVars = function(field, variable, cond, fieldTyp
* @return {SqlCondition} current SqlCondition-object
*/
SqlCondition.prototype.orPrepareVars = function(field, variable, cond, fieldType) {
logging.log("orPrepareVars " + variable)
variable = this._checkVars(variable)
if (variable) {
return this.orPrepare(field, variable, cond, fieldType);
......@@ -280,10 +277,8 @@ SqlCondition.prototype.buildSql = function(pBeforeCondition, pAlternativeCond, p
* @ignore
*/
SqlCondition.prototype._checkVars = function(variable) {
logging.log("var: " + variable)
if (vars.exists(variable)) {
var value = vars.getString(variable);
logging.log("val: " + value)
if (value) {
return value;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment