Skip to content

Conversation

@schmitz-ilias
Copy link
Contributor

This PR is a possible fix for 46588. Complex filter inputs (duration and multiselect) still properly show their selected values in ILIAS 9, but at some point that broke due to different refactorings of js binding and form rendering.

The issue is that those input fields lose the js bound to them when they are rendered into their popover in FilterContextRenderer::renderProxyField, so that their updateOnLoadCode is not executed. My somewhat blunt solution to this is to attach the onLoadCode to the popover, similar to what is done in Field/Renderer::wrapInFormContext. An alternative would be to wrap the input into something similar to tpl.context_form.html before rendering to the filter, but that didn't seem worth the effort to me.

Additionally, I also made a few changes to Duration::getUpdateOnLoadCode, so that dates (with or without time) are not shown as their raw value, but formatted similarly to how they are shown in the datetime picker.

@schmitz-ilias schmitz-ilias added bugfix kitchen sink php Pull requests that update Php code labels Dec 19, 2025
@oliversamoila oliversamoila self-assigned this Jan 5, 2026
Copy link
Contributor

@oliversamoila oliversamoila left a comment

Choose a reason for hiding this comment

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

Hello @schmitz-ilias ,
from a UX and UI perspective, the result looks good. Thank you very much for your contribution.
I'm forwarding this to @thibsy for code review. He may contact you with change requests or incorporate the changes directly (That includes cherry picking too.)

Kind regards,
@oliversamoila (as UI coordinator)

@oliversamoila oliversamoila removed their assignment Jan 12, 2026
@dsstrassner
Copy link
Contributor

@thibsy gerne 💶 🤑 💶

Copy link
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

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

Hi @schmitz-ilias,

Thx a lot for your contribution to the UI framework!

During the review process I tried to find a possible solution for the root cause of this. Since this led me to write some code, it was simpler to just provide a PR myself. See #11103

I therefore close this PR.

Kind regards,
@thibsy (as UI coordinator)

@thibsy thibsy closed this Feb 10, 2026
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.

4 participants