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
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