Explorar o código

Merge pull request #3675 from wangkx/h8138b

HPCC-8138 Set ECL WU Description to blank using WUUpdate

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=12) %!d(string=hai) anos
pai
achega
a58f371a92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      esp/services/ws_workunits/ws_workunitsService.cpp

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

@@ -840,7 +840,7 @@ bool CWsWorkunitsEx::onWUUpdate(IEspContext &context, IEspWUUpdateRequest &req,
         if (origValueChanged(req.getJobname(), req.getJobnameOrig(), s))
             wu->setJobName(s.trim().str());
         if (origValueChanged(req.getDescription(), req.getDescriptionOrig(), s.clear()))
-            wu->setDebugValue("description", (req.getDescription()) ? s.trim().str() : NULL, true);
+            wu->setDebugValue("description", (req.getDescription() && *req.getDescription()) ? s.trim().str() : NULL, true);
 
         double version = context.getClientVersion();
         if (version > 1.04)