Explorar el Código

Some WUUpdate values not being set

Some field values were not being set when WsWorkunits::WUUpdate was
being called.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Anthony Fishbeck hace 13 años
padre
commit
afc44c28eb
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      esp/services/ws_workunits/ws_workunitsService.cpp

+ 6 - 1
esp/services/ws_workunits/ws_workunitsService.cpp

@@ -418,7 +418,12 @@ static bool origValueChanged(const char *newValue, const char *origValue, String
         }
         return false;
     }
-    return (newValue || origValue);
+    if (newValue)
+    {
+        s.append(newValue).trim();
+        return true;
+    }
+    return (origValue!=NULL);
 }
 
 bool CWsWorkunitsEx::onWUUpdate(IEspContext &context, IEspWUUpdateRequest &req, IEspWUUpdateResponse &resp)