N°6651 - 3.1 bulk modify n:n like Tagset: checkbox ignored (#552)

- handle selectize enable/disable to update operation hidden input state
- don't execute elements click callback when input disabled
- merge current and initial values for the initial value
This commit is contained in:
bdalsass
2023-10-30 08:34:53 +01:00
committed by GitHub
parent e7d11e4bec
commit a1a83a1ba3
3 changed files with 24 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ class LinkSetUIBlockFactory extends SetUIBlockFactory
$oSetUIBlock->GetDataProvider()->SetOptions(array_values($aInitialOptions));
// Set value
$oSetUIBlock->SetValue(json_encode($aCurrentValues));
$oSetUIBlock->SetInitialValue(json_encode($aInitialValues));
$oSetUIBlock->SetInitialValue(json_encode(array_merge($aInitialValues, $aCurrentValues)));
} else {
$oSetUIBlock->SetHasError(true);
}