stable

Clone or download

Read-only

refactor: Do not check validity of pattern when applying it

* Pattern is supposed to be valid when we retrieve it for the DB since a check is done when we change it. * If we change the rules about how valid a pattern can be (e.g we add STATUS as mandatory variable), then nobody will be able to upload files in their existing setup unless they change their config. No functional changes. Part of story #24166: apply a naming pattern on files to enforce a convention Change-Id: I8b7aa597f8c60ba6b2ef6e116a8ae12a64c2a8b6

Modified Files

Name
M plugins/docman/include/Docman_Controller.class.php +0 −36 Go to diff View file
M plugins/docman/include/FilenamePattern/FilenameBuilder.php +0 −6 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +1 −2 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +1 −2 Go to diff View file
M plugins/docman/include/REST/v1/Files/DocmanFileVersionCreator.php +0 −2 Go to diff View file
M plugins/docman/tests/unit/FilenamePattern/FilenameBuilderTest.php +0 −47 Go to diff View file