diff --git a/ktapi/KTAPIDocument.inc.php b/ktapi/KTAPIDocument.inc.php index 56e26a7..998770b 100644 --- a/ktapi/KTAPIDocument.inc.php +++ b/ktapi/KTAPIDocument.inc.php @@ -1159,10 +1159,10 @@ class KTAPI_Document extends KTAPI_FolderItem $indexContent = $value; break; case 'created_date': - $documents['created'] = $value; + if (!empty($value)) $documents['created'] = $value; break; case 'modified_date': - $documents['modified'] = $value; + if (!empty($value)) $documents['modified'] = $value; break; case 'is_immutable': $documents['immutable'] = in_array(strtolower($value), array('1','true','on','yes'))?'1':'0'; @@ -1645,6 +1645,12 @@ class KTAPI_Document extends KTAPI_FolderItem // get the storage path $detail['storage_path'] = $document->getStoragePath(); + if ($wsversion >= 2) + { + unset($detail['updated_by']); + unset($detail['updated_date']); + } + return $detail; } diff --git a/templates/ktcore/workflow/admin/new_wizard_step2.smarty b/templates/ktcore/workflow/admin/new_wizard_step2.smarty index 48b15c2..6527f34 100644 --- a/templates/ktcore/workflow/admin/new_wizard_step2.smarty +++ b/templates/ktcore/workflow/admin/new_wizard_step2.smarty @@ -9,6 +9,7 @@ states. Use the table below to configure this behaviour.{/i18n}

{/foreach} +
@@ -35,7 +36,7 @@ states. Use the table below to configure this behaviour.{/i18n}

{/foreach}
- +