stable

Clone or download

Read-only

fix: Order custom properties by their label

As stated in the original AC of story #24197, the extra columns in search results should be ordered alphabetically. As of today, the order is not guaranteed because the underlying query is done without sort. It means that the order is driven by the database and can even change from one page load to another. The order of column is now: * Id (always there) * Title (always there) * Description * Owner * Create date * Update date * Status * Obsolescence date * Location * Filename * Custom properties **(order by label)** For consistency, custom properties order is applied also in properties administration and in update item properties modal. Closes request #27530: Search results columns should be ordered alphabetically Change-Id: Ia7ccb63f6dcef07f444fb0deccc853a04d602e7a

Modified Files

Name
M plugins/docman/include/REST/v1/Metadata/MetadataRepresentationBuilder.php +17 −2 Go to diff View file
M plugins/docman/include/REST/v1/Search/SearchColumnCollectionBuilder.php +4 −0 Go to diff View file
M plugins/docman/include/view/Docman_View_Admin_Metadata.class.php +23 −6 Go to diff View file
M plugins/docman/tests/unit/REST/v1/MetadataRepresentationBuilderTest.php +16 −11 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Search/SearchColumnCollectionBuilderTest.php +42 −4 Go to diff View file