Skip to content

Commit

Permalink
fix: always set form block static_text fields as not required (#782)
Browse files Browse the repository at this point in the history
* fix: always set form block static_text fields as not required

* Update RELEASE.md

Co-authored-by: Giulia Ghisini <[email protected]>

---------

Co-authored-by: Giulia Ghisini <[email protected]>
  • Loading branch information
pnicolli and giuliaghisini committed Oct 2, 2024
1 parent c62c85a commit 9eb087e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@

### Migliorie

- ...

### Novità

- ...

### Fix

- Risolto un problema con il blocco Form che in alcuni casi poteva dare problemi di validazione dei campi di tipo 'testo statico'.

## Versione 11.23.2 (24/09/2024)

### Migliorie

- Gli utenti SPID vengono ora direttamente rediretti al link finale quando viene utilizzato un CT di tipo Collegamento

### Novità
Expand Down
5 changes: 4 additions & 1 deletion src/customizations/volto-form-block/components/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ const Sidebar = ({
<BlockDataForm
schema={FieldSchema(subblock)}
onChangeField={(name, value) => {
var update_values = {};
const update_values = {};
if (subblock.field_type === 'static_text') {
update_values.required = false;
}

onChangeSubBlock(index, {
...subblock,
Expand Down

0 comments on commit 9eb087e

Please sign in to comment.