Skip to content
Snippets Groups Projects

REDMINE_ISSUE-17628 | Forcer la valeur d'un champ selon une condition

Merged Timothee P requested to merge redmine-issues/17628 into develop
5 files
+ 274
124
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -430,7 +430,7 @@ export default {
checkDeactivatedValues() {
// if changes occured, update extra_forms array with freshly checked active customForms
let newExtraForms = this.extra_forms.map((xForm) => { // we use 'deactivate' instead of 'activate' because at initialization this property cannot be evaluated ...
const isDeactivated = !isXtraFormActive(this.extra_forms, xForm); // ... if the component is not created to set this property, thus no extra form would appear at all
const isDeactivated = !isXtraFormActive(this.extra_forms, xForm.conditional_field_config); // ... if the component is not created to set this property, thus no extra form would appear at all
// toggle value to null to deactivate other fields conditioned by it
if (isDeactivated) {
xForm['value'] = null;
Loading