mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	getAttributes() orders attributes by attr def name
This commit is contained in:
		
							parent
							
								
									f6504c2aab
								
							
						
					
					
						commit
						8fd19944a4
					
				|  | @ -75,13 +75,13 @@ class SeedDMS_Core_Object { /* {{{ */ | ||||||
| 
 | 
 | ||||||
| 			switch(get_class($this)) { | 			switch(get_class($this)) { | ||||||
| 				case "SeedDMS_Core_Document": | 				case "SeedDMS_Core_Document": | ||||||
| 					$queryStr = "SELECT * FROM tblDocumentAttributes WHERE document = " . $this->_id." ORDER BY `id`"; | 					$queryStr = "SELECT a.* FROM tblDocumentAttributes a LEFT JOIN tblAttributeDefinitions b ON a.attrdef=b.id WHERE a.document = " . $this->_id." ORDER BY b.`name`"; | ||||||
| 					break; | 					break; | ||||||
| 				case "SeedDMS_Core_DocumentContent": | 				case "SeedDMS_Core_DocumentContent": | ||||||
| 					$queryStr = "SELECT * FROM tblDocumentContentAttributes WHERE content = " . $this->_id." ORDER BY `id`"; | 					$queryStr = "SELECT a.* FROM tblDocumentContentAttributes a LEFT JOIN tblAttributeDefinitions b ON a.attrdef=b.id WHERE a.content = " . $this->_id." ORDER BY b.`name`"; | ||||||
| 					break; | 					break; | ||||||
| 				case "SeedDMS_Core_Folder": | 				case "SeedDMS_Core_Folder": | ||||||
| 					$queryStr = "SELECT * FROM tblFolderAttributes WHERE folder = " . $this->_id." ORDER BY `id`"; | 					$queryStr = "SELECT a.* FROM tblFolderAttributes a LEFT JOIN tblAttributeDefinitions b ON a.attrdef=b.id WHERE a.folder = " . $this->_id." ORDER BY b.`name`"; | ||||||
| 					break; | 					break; | ||||||
| 				default: | 				default: | ||||||
| 					return false; | 					return false; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann