Skip to content

Commit cdaffb8

Browse files
committed
broken-save - Show validation for nodes after broken save.
1 parent ae4709b commit cdaffb8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

edit_stack_form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ protected function prepare_text_field($field, $text, $format, $itemid, $filearea
966966
public function validation($fromform, $files) {
967967
$errors = parent::validation($fromform, $files);
968968
$qtype = new qtype_stack();
969+
$qtype->question = $this->question;
969970
$allerrors = $qtype->validate_fromform($fromform, $errors);
970971
// Ignore STACK-specific validation if question is marked as broken unless
971972
// a confirmation is required.

lang/en/qtype_stack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
$string['forbiddendoubledollars'] = 'Please use the delimiters <code>\(...\)</code> for inline maths and <code>\[...\]</code> for display maths. <code>$...$</code> and <code>$$...$$</code> are not permitted. There is an option at the end of the form to fix this automatically.';
144144
$string['isbroken'] = 'Save as broken';
145145
$string['isbrokenlabel'] = 'Mark the question as broken. This will allow the question to be saved even with errors but it will not be displayed to students.';
146-
$string['isbroken_help'] = 'This option allows you to save your work even if a question is incomplete or has errors. You or a colleague can then return to work on it later.';
146+
$string['isbroken_help'] = 'This option allows you to save your work even if a question is incomplete or has errors. You or a colleague can then return to work on it later. You will still need to tick the boxes to confirm any deletion of inputs or PRTs before the question will save.';
147147
$string['forbidfloat'] = 'Forbid float';
148148
$string['forbidfloat_help'] = 'If set to yes, then any answer of the student which has a floating point number will be rejected as invalid.';
149149
$string['forbidfloat_link'] = '%%WWWROOT%%/question/type/stack/doc/doc.php/Authoring/Inputs.md#Forbid_Floats';

0 commit comments

Comments
 (0)