Skip to content

Conversation

meisterT
Copy link
Member

@meisterT meisterT commented Oct 5, 2024

Part of #2307.

@meisterT
Copy link
Member Author

meisterT commented Oct 5, 2024

cc @cubercsl

'label' => 'Multi-pass problem',
'required' => false,
]);
$builder->add('multipassLimit', IntegerType::class, [
Copy link
Member

Choose a reason for hiding this comment

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

We could hide this with some JavaScript but I will do this later

Copy link
Contributor

@cubercsl cubercsl Oct 5, 2024

Choose a reason for hiding this comment

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

Do you think we should check this value before saving?
For multi-pass problems, the passlimit must be >= 2, and for traditional problem it must be equal to 1. (I noticed that getMultiPassLimit checks for traditional problem, but the value stored in the db may be inconsistent)

@meisterT meisterT added this pull request to the merge queue Oct 5, 2024
Merged via the queue into DOMjudge:main with commit f1105ea Oct 5, 2024
26 checks passed
@meisterT meisterT deleted the mp_ui branch October 5, 2024 09:29
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