Skip to content

Conversation

@drgrice1
Copy link
Member

The settings att_to_open_children and counts_parent_grade were not being transferred from the set definition file due to incorrect casing used. Thanks to @hal4stvf for pointing this out.

Part of the problem here is the mix of snake case and cammel case. The set definition file, the problem table in the database, and the default value from defaults.config use att_to_open_children. However, the addProblemToSet method expects the argument of attToOpenChildren. We need to eliminate snake case usage altogether. It is the most annoying case to type (shift _ t takes three keystrokes but shift t only takes two). But even worse is mixing these different casing schemes, particularly as is done in this case.

This fixes issue #2897.

The settings `att_to_open_children` and `counts_parent_grade` were not
being transferred from the set definition file due to incorrect casing
used.  Thanks to @hal4stvf for pointing this out.

Part of the problem here is the mix of snake case and cammel case.  The
set definition file, the problem table in the database, and the default
value from `defaults.config` use `att_to_open_children`.  However, the
`addProblemToSet` method expects the argument of `attToOpenChildren`.
We need to eliminate snake case usage altogether.  It is the most
annoying case to type (`shift _ t` takes three keystrokes but `shift t`
only takes two).  But even worse is mixing these different casing
schemes, particularly as is done in this case.

This fixes issue openwebwork#2897.
@drgrice1 drgrice1 force-pushed the bugfix/jitar-set-import branch from 8e5e53f to 2e2b584 Compare February 1, 2026 11:57
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.

1 participant