diff --git a/classes/external/get_kanban_content.php b/classes/external/get_kanban_content.php index 124a587d..7c31f968 100644 --- a/classes/external/get_kanban_content.php +++ b/classes/external/get_kanban_content.php @@ -469,6 +469,7 @@ public static function execute(int $cmid, int $boardid, int $timestamp = 0, bool $common->history = $kanban->history; $common->updatefails = 0; $common->usenumbers = $kanban->usenumbers; + $common->linknumbers = $kanban->linknumbers; if (!$asupdate) { $common->template = $DB->get_field_sql( diff --git a/mod_form.php b/mod_form.php index 41090aa3..7302c542 100644 --- a/mod_form.php +++ b/mod_form.php @@ -66,6 +66,7 @@ public function definition(): void { $mform->addHelpButton('linknumbers', 'linknumbers', 'mod_kanban'); $mform->hideIf('linknumbers', 'usenumbers', 'notchecked'); $mform->setDefault('linknumbers', 1); + $mform->setType('linknumbers', PARAM_INT); $this->standard_coursemodule_elements();