Skip to content

Commit

Permalink
Decode html entities for edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Mar 3, 2024
1 parent 337a932 commit 7999e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/form/edit_card_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function set_data_for_dynamic_submission(): void {
$id = $this->optional_param('id', null, PARAM_INT);
$card = $DB->get_record('kanban_card', ['id' => $id]);
$options = json_decode($card->options);
$card->title = html_entity_decode($card->title, ENT_COMPAT, 'UTF-8');
$card->cmid = $this->optional_param('cmid', null, PARAM_INT);
$card->boardid = $card->kanban_board;
$card->assignees = $DB->get_fieldset_select('kanban_assignee', 'userid', 'kanban_card = :cardid', ['cardid' => $id]);
Expand Down
1 change: 1 addition & 0 deletions classes/form/edit_column_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function set_data_for_dynamic_submission(): void {
$id = $this->optional_param('id', null, PARAM_INT);
$column = $DB->get_record('kanban_column', ['id' => $id]);
$column->cmid = $this->optional_param('cmid', null, PARAM_INT);
$column->title = html_entity_decode($column->title, ENT_COMPAT, 'UTF-8');
$column->boardid = $column->kanban_board;
$options = json_decode($column->options);
$column->autoclose = $options->autoclose;
Expand Down

0 comments on commit 7999e7e

Please sign in to comment.