Prechádzať zdrojové kódy

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 13 rokov pred
rodič
commit
afc44c28eb

+ 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)