mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	- added new parameter to addDocument() for setting categories
This commit is contained in:
		
							parent
							
								
									a2d719ef28
								
							
						
					
					
						commit
						b526c87934
					
				|  | @ -479,7 +479,7 @@ class LetoDMS_Core_Folder { | |||
| 	 *        containing two elements. The first one is the new document, the | ||||
| 	 *        second one is the result set returned when inserting the content. | ||||
| 	 */ | ||||
| 	function addDocument($name, $comment, $expires, $owner, $keywords, $tmpFile, $orgFileName, $fileType, $mimeType, $sequence, $reviewers=array(), $approvers=array(),$reqversion,$version_comment="") { /* {{{ */ | ||||
| 	function addDocument($name, $comment, $expires, $owner, $keywords, $categories, $tmpFile, $orgFileName, $fileType, $mimeType, $sequence, $reviewers=array(), $approvers=array(),$reqversion,$version_comment="") { /* {{{ */ | ||||
| 		$db = $this->_dms->getDB(); | ||||
| 		 | ||||
| 		$expires = (!$expires) ? 0 : $expires; | ||||
|  | @ -511,6 +511,9 @@ class LetoDMS_Core_Folder { | |||
| 			return false; | ||||
| 		} | ||||
| 
 | ||||
| 		if($categories) { | ||||
| 			$document->setCategories($categories); | ||||
| 		} | ||||
| 		return array($document, $res); | ||||
| 	} /* }}} */ | ||||
| 	 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 steinm
						steinm