stable

Clone or download

Read-only

Add the check of the obsolescence date in the modal

This is a part of story #13589 Update hardcoded metadata How to test: - In the creation modal => If the obsolescence date is anterior or the same of the current date => error - In the update modal => You can put any date you want Change-Id: I2a334fe268b303b21cc5f774d90559041524f54c

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemCreator.php +2 −2 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/HardcodedMetadataObsolescenceDateRetriever.php +13 −3 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +13 −13 Go to diff View file
M plugins/docman/phpunit/REST/v1/Metadata/HardcodedMetadataObsolescenceDateRetrieverTest.php +27 −2 Go to diff View file
M plugins/document/scripts/document/app.spec.js +5 −2 Go to diff View file
D plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/ObsolescenceDateMetadataObsoleteTodayOption.vue +0 −28 Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/ObsolescenceMetadata/ObsolescenceDateMetadataForCreate.spec.js +190 −0 Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/ObsolescenceDateMetadata.vue Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/ObsolescenceDateMetadata.spec.js Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/ObsolescenceMetadata/ObsolescenceDateMetadataForUpdate.vue +147 −0 Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/OtherInformationMetadata.spec.js Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/OtherInformationMetadata.vue Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadataForUpdate.spec.js +143 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadataForUpdate.vue +64 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.vue +3 −3 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalUpdateMetadata/UpdateMetadataModal.vue +3 −7 Go to diff View file
A plugins/document/scripts/document/helpers/metadata-helpers/obsolescence-date-value.js +38 −0 Go to diff View file
A plugins/document/scripts/document/helpers/metadata-helpers/obsolescence-date-value.spec.js +44 −0 Go to diff View file
M plugins/document/scripts/document/po/fr.po +8 −2 Go to diff View file