Skip to content

Set default in achievement evaluator editor save as form.#3018

Open
somiaj wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
somiaj:achievement-editor-save-as-default
Open

Set default in achievement evaluator editor save as form.#3018
somiaj wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
somiaj:achievement-editor-save-as-default

Conversation

@somiaj

@somiaj somiaj commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Set the first option to use the achievement evaluator in the current achievement as the default selected option in the save as form of the achievement evaluator editor if it was not already set from a previous post. This fixes #2795.

In testing this, this only fixes the issue I ran across where nothing was set as default. There are still some oddities and that could be improved. If you choose to Save as a new achievement, the new file is created, but the editor reverts back to the evaluator of the current achievement. Overall this form needs improved and is not addressed here, as any issues are just current behavior.

Set the first option to use the achievement evaluator in the current
achievement as the default selected option in the save as form of the
achievement evaluator editor if it was not already set from a previous
post. This fixes openwebwork#2795.

@drgrice1 drgrice1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks fine.

I think that the "save as" tabs for this and for the PG problem editor need to be generally reworked. The behavior should be similar to the "save as" functionality for most file editors. That is if you choose a filename of an existing file, then you are asked if you want to replace that file or not.

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