Skip to content

Commit

Permalink
Test: Fix Saving of Author
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Sep 30, 2024
1 parent 33d408c commit 4571bcc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,13 @@ public function step_4(): void
$this->db->dropTableColumn('qpl_questionpool', 'isonline');
}
}

public function step_5(): void
{
$this->db->modifyTableColumn(
'qpl_questions',
'author',
['type' => 'text', 'length' => 512]
);
}
}
1 change: 1 addition & 0 deletions Modules/TestQuestionPool/classes/class.assQuestionGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ public function addBasicQuestionFormProperties(ilPropertyFormGUI $form): void
// author
$author = new ilTextInputGUI($this->lng->txt("author"), "author");
$author->setValue($this->object->getAuthor());
$author->setMaxLength(512);
$author->setRequired(true);
$form->addItem($author);

Expand Down

0 comments on commit 4571bcc

Please sign in to comment.