2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Made sure only enabled questionnaire assignments effected (otherwise would wipe out others)

This commit is contained in:
azammitdcarf
2011-01-18 23:19:09 +00:00
parent da72f94d5d
commit 3905e33e46
2 changed files with 8 additions and 2 deletions

View File

@@ -114,7 +114,10 @@ if (isset($_POST['submit']))
$sql = "DELETE
FROM client_questionnaire
WHERE 1";
WHERE questionnaire_id IN (
SELECT questionnaire_id
FROM questionnaire
WHERE enabled = 1)";
$db->Execute($sql);