fix for picking up value list in condition definition

This commit is contained in:
john30
2017-04-02 13:14:45 +02:00
parent 2b8b0860c1
commit f933c822e9
+1 -1
View File
@@ -1413,7 +1413,7 @@ result_t Condition::create(const string condName, map<string, string> row, map<s
} else if (circuit.empty()) { } else if (circuit.empty()) {
circuit = rowDefaults["circuit"]; circuit = rowDefaults["circuit"];
} }
string valueList = row["id"]; string valueList = row["pbsb"];
if (valueList.length() == 0) { if (valueList.length() == 0) {
returnValue = new SimpleCondition(condName, condName, circuit, level, name, dstAddress, field); returnValue = new SimpleCondition(condName, condName, circuit, level, name, dstAddress, field);
return RESULT_OK; return RESULT_OK;