Skip to content

Conversation

@drgrice1
Copy link
Member

The format for a filter in the scrolling record lists is filterName:filtervalue. When the filters are applied the name and value are slit on the colon. Now if the filter value contains a colon, then the current code splits that value as well, and since only two variables are saved in the return value, the rest goes off into the abyss. This just adds the optional limit to the split call so that the colon in the value is not split.

This fixes issue #2885.

The format for a filter in the scrolling record lists is
`filterName:filtervalue`.  When the filters are applied the name and
value are slit on the colon.  Now if the filter value contains a colon,
then the current code splits that value as well, and since only two
variables are saved in the return value, the rest goes off into the
abyss.  This just adds the optional limit to the `split` call so that
the colon in the value is not split.

This fixes issue openwebwork#2885.
@drgrice1 drgrice1 requested a review from dlglin January 14, 2026 19:52
Copy link
Member

@dlglin dlglin left a comment

Choose a reason for hiding this comment

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

Works for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants