Skip to content

[FIX] #48017 UI: skip isClientSideValueOk() for null - #11953

Merged
thibsy merged 1 commit into
ILIAS-eLearning:release_11from
srsolutionsag:fix/11/ui-input-group-with-value
Aug 20, 2026
Merged

[FIX] #48017 UI: skip isClientSideValueOk() for null#11953
thibsy merged 1 commit into
ILIAS-eLearning:release_11from
srsolutionsag:fix/11/ui-input-group-with-value

Conversation

@thibsy

@thibsy thibsy commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Hi @iszmais,

This should probably address https://mantis.ilias.de/view.php?id=48017, can you verify?

I will think about possible side-effects in the meantime.

Thx and kind regards,
@thibsy

@thibsy thibsy self-assigned this Aug 18, 2026
@thibsy thibsy added bugfix kitchen sink php Pull requests that update Php code labels Aug 18, 2026

@iszmais iszmais left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need to check the $value, not the $input.

Otherwise this works for me.

Comment thread components/ILIAS/UI/src/Implementation/Component/Input/Group.php Outdated
@thibsy
thibsy force-pushed the fix/11/ui-input-group-with-value branch from 178a9fa to 236f432 Compare August 18, 2026 14:36
@iszmais
iszmais self-requested a review August 18, 2026 14:37
…ning#11953)

This ensures that `withValue()` can be called on nested sub inputs
without calling respective `isClientSideValueOk()` methods.

Unfortunately this couples the `isClientSideValueOk()` internals to
`withValue()` internals, which is suboptimal. We should improve how
inputs handle `null` (maybe using `Refinery\Transformation`) and
revisit this at a later point.
@thibsy
thibsy force-pushed the fix/11/ui-input-group-with-value branch from 236f432 to a380dac Compare August 20, 2026 09:22
@thibsy

thibsy commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

This should be fine for the time being, I could not think of any unwanted side-effect and I am willing to find out the hard way =). I will integrate this now, thx @iszmais for checking with DataCollection.

@thibsy
thibsy merged commit 75e2622 into ILIAS-eLearning:release_11 Aug 20, 2026
5 checks passed
thibsy added a commit that referenced this pull request Aug 20, 2026
This ensures that `withValue()` can be called on nested sub inputs
without calling respective `isClientSideValueOk()` methods.

Unfortunately this couples the `isClientSideValueOk()` internals to
`withValue()` internals, which is suboptimal. We should improve how
inputs handle `null` (maybe using `Refinery\Transformation`) and
revisit this at a later point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants