Skip to content

Commit

Permalink
Use 1 setting instead of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Apr 5, 2016
1 parent 7f42c32 commit cede17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/exercice/exercise.class.php
Expand Up @@ -1716,7 +1716,7 @@ public function save($type_e = '')
$sql = "UPDATE $TBL_EXERCISES SET id = iid WHERE iid = {$this->id} ";
Database::query($sql);

if ($this->quizRelCategoryTable) {
if ($this->specialCategoryOrders) {
$sql = "UPDATE $TBL_EXERCICES
SET question_selection_type= ".intval($this->getQuestionSelectionType())."
WHERE id = ".$this->id." AND c_id = ".$this->course_id;
Expand Down

2 comments on commit cede17d

@ywarnier
Copy link
Member

Choose a reason for hiding this comment

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

The commit message is too short. "1 setting instead of 2" doesn't really match the commit, either...
A correct commit message should be possible to add to the changelog without additional modification.

@jmontoyaa
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of using "quizRelCategoryTable" and "specialCategoryOrders" in the class we only use one setting "specialCategoryOrders".

Please sign in to comment.