Commit 68ed2d843940b1c8d5dc686817d949d200826a10
1 parent
20a0e957
WSA-114
"Uploading a document via hot folders, not specifying the Date Created and Date Modified the server inserts its own random date." Fixed. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8296 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
ktapi/KTAPIDocument.inc.php
| @@ -1159,10 +1159,10 @@ class KTAPI_Document extends KTAPI_FolderItem | @@ -1159,10 +1159,10 @@ class KTAPI_Document extends KTAPI_FolderItem | ||
| 1159 | $indexContent = $value; | 1159 | $indexContent = $value; |
| 1160 | break; | 1160 | break; |
| 1161 | case 'created_date': | 1161 | case 'created_date': |
| 1162 | - $documents['created'] = $value; | 1162 | + if (!empty($value)) $documents['created'] = $value; |
| 1163 | break; | 1163 | break; |
| 1164 | case 'modified_date': | 1164 | case 'modified_date': |
| 1165 | - $documents['modified'] = $value; | 1165 | + if (!empty($value)) $documents['modified'] = $value; |
| 1166 | break; | 1166 | break; |
| 1167 | case 'is_immutable': | 1167 | case 'is_immutable': |
| 1168 | $documents['immutable'] = in_array(strtolower($value), array('1','true','on','yes'))?'1':'0'; | 1168 | $documents['immutable'] = in_array(strtolower($value), array('1','true','on','yes'))?'1':'0'; |