mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	fix SeedDMS_Core_Document::remove when version had its own attachments
This commit is contained in:
		
							parent
							
								
									9d5c4a784f
								
							
						
					
					
						commit
						29cf87d85d
					
				|  | @ -2362,6 +2362,11 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */ | |||
| 		} | ||||
| 
 | ||||
| 		// remove all document files
 | ||||
| 		/* make sure to get all attachments because _removeContent() did remove | ||||
| 		 * the attachments of a version already and the list of attachments | ||||
| 		 * is still stored in _documentFiles | ||||
| 		 * */ | ||||
| 		unset($this->_documentFiles); | ||||
| 		$res = $this->getDocumentFiles(); | ||||
| 		if (is_bool($res) && !$res) { | ||||
| 			$db->rollbackTransaction(); | ||||
|  |  | |||
|  | @ -31,6 +31,7 @@ | |||
| - add parameter $incdisabled to SeedDMS_Core_Folder::getNotifyList() | ||||
| - do not validate value in SeedDMS_Core_Attribute::setValue(), it should have been done before | ||||
| - SeedDMS_Core_DMS::search() can search for last date of document status change | ||||
| - fix SeedDMS_Core_Document::remove when version had its own attachments | ||||
|  </notes> | ||||
|  <contents> | ||||
|   <dir baseinstalldir="SeedDMS" name="/"> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann