Index: branches/pap_mops/ippTools/src/pubtool.c
===================================================================
--- branches/pap_mops/ippTools/src/pubtool.c	(revision 24427)
+++ branches/pap_mops/ippTools/src/pubtool.c	(revision 24428)
@@ -89,9 +89,10 @@
     PXOPT_LOOKUP_STR(product, config->args, "-product",  true, false);
     PXOPT_LOOKUP_STR(stage, config->args, "-stage", true, false);
+    PXOPT_LOOKUP_STR(workdir, config->args, "-workdir",  true, false);
 
     // optional
     PXOPT_LOOKUP_STR(comment, config->args, "-comment",  false, false);
 
-    if (!publishClientInsert(config->dbh, 0, product, stage, comment)) {
+    if (!publishClientInsert(config->dbh, 0, product, stage, workdir, comment)) {
         psError(PS_ERR_UNKNOWN, false, "Database error");
         return false;
@@ -108,5 +109,4 @@
 
     // required
-    PXOPT_LOOKUP_STR(workdir, config->args, "-workdir",  true, false);
 
     // optional
@@ -171,5 +171,5 @@
         psS64 stage = psMetadataLookupS64(NULL, row, "stage_id");   // Stage identifier
 
-        if (!publishRunInsert(config->dbh, 0, client, stage, workdir, set_label, "new")) {
+        if (!publishRunInsert(config->dbh, 0, client, stage, set_label, "new")) {
             psError(PS_ERR_UNKNOWN, false, "Unable to add fileset");
             psFree(output);
