Skip to content

Commit

Permalink
fix(question): SQL errors when deleting a question
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Jan 27, 2020
1 parent 6b46b79 commit 6edaed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public function post_purgeItem() {
'id' => new QuerySubquery([
'SELECT' => self::getForeignKeyField(),
'FROM' => $condition_table,
'WHERE' => ['show_field' => $questionId]
'WHERE' => ['plugin_formcreator_questions_id' => $questionId]
])
]
);
Expand All @@ -682,7 +682,7 @@ public function post_purgeItem() {
[
'OR' => [
self::getForeignKeyField() => $questionId,
'show_field' => $questionId
'plugin_formcreator_questions_id' => $questionId
]
]
);
Expand Down

0 comments on commit 6edaed6

Please sign in to comment.