Skip to content

Conversation

drgrice1
Copy link
Member

This is a quick fix that will make things function for now, and is good for a hotfix. This just reverts all of the fields that were switched to number inputs and that have labels for special negative values back to text inputs and the functionality prior to WeBWorK 2.20.

The fields that do not have those labels can still be number inputs. That will work fine for those.

This resolves issue #2820 for the current release.

We can try to do better for the next release, but I don't see any other easy way to fix this that is appropriate for a hotfix.

@drgrice1 drgrice1 changed the title Revert number inputs for fields with labels on the problem set detail page. Revert number inputs for fields with labels on the problem set detail page. (hotfix) Sep 17, 2025
@drgrice1 drgrice1 force-pushed the bugfix/problem-set-details-number-settings-hotfix branch from b145145 to 3f27520 Compare September 17, 2025 21:43
@drgrice1
Copy link
Member Author

Note that this also does not set the placeholder for a number input to the value. That was a bad idea. The idea was that it would be one of these labels. However, it didn't only set the placeholder in that case. It also set the placeholder to a numeric value. So if the value was 3, and then you delete the 3 in the input, the input still shows 3. That is really confusing.

… page.

This is a quick fix that will make things function for now, and is good
for a hotfix.  This just reverts all of the fields that were switched to
number inputs and that have labels for special negative values back to
text inputs and the functionality prior to WeBWorK 2.20.

The fields that do not have those labels can still be number inputs.
That will work fine for those.

Also set the default for showMeAnother to the "Course Default" instead
of "Never" which is what it should be.

This resolves issue openwebwork#2820 for the current release.

We can try to do better for the next release, but I don't see any other
easy way to fix this that is appropriate for a hotfix.
@drgrice1 drgrice1 force-pushed the bugfix/problem-set-details-number-settings-hotfix branch from 3f27520 to 0eea5e0 Compare September 17, 2025 22:08
@dlglin dlglin merged commit 3678e21 into openwebwork:main Sep 23, 2025
2 checks passed
@drgrice1 drgrice1 deleted the bugfix/problem-set-details-number-settings-hotfix branch September 23, 2025 20:22
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.

3 participants