Task #91627
closedShow full path of allowedFileMounts in new form modal
100%
Description
We have a long list of directories listed in TYPO3:CMS:Form:persistenceManager:allowedFileMounts so that different editor groups can save their form configs in their own file mount. This way, editors cannot edit other editors forms if the yaml files were all in one folder.
TYPO3:
CMS:
Form:
persistenceManager:
allowedFileMounts:
10: 1:/form-configs/
20: 1:/folder-a/form-configs/
30: 1:/folder-b/form-configs/
40: 1:/folder-c/form-configs/
50: 1:/folder-d/form-configs/
...
This poses a problem for editors who have permissions for several groups:
When creating a new form the modal shows a list of all available configuration folders with the same name ("form-configs") instead of the full path. So the editor picks the first entry in the list, and this could lead to other editors with overlapping permissions to not be able to edit that form.
A quick way to solve this would be to show the full path in the select field of the modal.
Updated by Florian Seirer almost 4 years ago
I was able to fix it by myself in /typo3/sysext/form/Resources/Public/JavaScript/Backend/FormManager/ViewModel.js around line 110:
...
if (folders.length > 1) {
savePathSelect = $('<select class="new-form-save-path form-control" data-identifier="newFormSavePath" />');
for (var i = 0, len = folders.length; i < len; ++i) {
// var option = new Option(folders[i]['label'], folders[i]['value']);
var option = new Option(folders[i]['value'].slice(2), folders[i]['value']);
$(savePathSelect).append(option);
}
}
...
Works for me on TYPO3 8.7, but I'm not sure is this is the best way to do this.
Updated by Björn Jacob almost 3 years ago
- Tracker changed from Bug to Task
- TYPO3 Version changed from 8 to 11
- Sprint Focus set to Remote Sprint
Updated by Björn Jacob over 2 years ago
- Related to Task #94806: Streamline and modernize form manager added
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Gerrit Code Review over 2 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Gerrit Code Review over 2 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Gerrit Code Review over 2 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Gerrit Code Review over 2 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70540
Updated by Andreas Steiger over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 026e0f46f0241341db7b8942ddb4cbecf106cff6.