mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
preset $reqversion in addDocument() to 0
This commit is contained in:
parent
c63c58f243
commit
7e91088cde
|
@ -709,7 +709,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
* containing two elements. The first one is the new document, the
|
* containing two elements. The first one is the new document, the
|
||||||
* second one is the result set returned when inserting the content.
|
* second one is the result set returned when inserting the content.
|
||||||
*/
|
*/
|
||||||
function addDocument($name, $comment, $expires, $owner, $keywords, $categories, $tmpFile, $orgFileName, $fileType, $mimeType, $sequence, $reviewers=array(), $approvers=array(),$reqversion,$version_comment="", $attributes=array(), $version_attributes=array(), $workflow=null) { /* {{{ */
|
function addDocument($name, $comment, $expires, $owner, $keywords, $categories, $tmpFile, $orgFileName, $fileType, $mimeType, $sequence, $reviewers=array(), $approvers=array(),$reqversion=0,$version_comment="", $attributes=array(), $version_attributes=array(), $workflow=null) { /* {{{ */
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
$expires = (!$expires) ? 0 : $expires;
|
$expires = (!$expires) ? 0 : $expires;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user