From 66810dfe7f4d60db231049d41d011aa43fa6cf8c Mon Sep 17 00:00:00 2001
From: kevin_fourie
Date: Tue, 25 Mar 2008 11:37:44 +0000
Subject: [PATCH] Merged in from DEV trunk...
---
ktapi/KTAPIDocument.inc.php | 10 ++++++++--
templates/ktcore/workflow/admin/new_wizard_step2.smarty | 3 ++-
2 files changed, 10 insertions(+), 3 deletions(-)
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}
-
+
--
libgit2 0.21.4