diff --git a/RELEASE.md b/RELEASE.md index 6a35b8f6b..128bfeb31 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,6 +41,20 @@ - ... --> +## Versione X.X.X (dd/mm/yyyy) + +### Migliorie + +- ... + +### Novità + +- ... + +### Fix + +- E' possibile caricare moduli in maniera massiva nei documenti all'interno delle aree corrette dentro Documenti e Dati > Modulistica + ## Versione 11.26.1 (27/12/2024) ### Fix diff --git a/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx b/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx index 6dd724971..c117cf1d1 100644 --- a/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx +++ b/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx @@ -196,10 +196,12 @@ class ContentsUploadModal extends Component { // as per agid guidelines, files cannot be uploaded in modulistica folder inside ct servizio // show restraint and hide upload button when page is called modulistica and when there's a restraint // this is enough to identify this only case bc even if another page is called 'modulistica', it will have 'File' - // as addable type + // and "Modulo" as addable type const showFileRestraint = - this.props.pathname.includes('modulistica') && - !this.props.types.some((type) => type.id === 'File'); + getBaseUrl(this.props.pathname).match(/\/servizi\/.*\/modulistica\/?$/) && + !this.props.types.some( + (type) => type.id === 'File' || type.id === 'Modulo', + ); return ( this.props.open && (