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

Fixed set outcomes SQL

This commit is contained in:
Adam Zammit
2016-09-28 10:12:30 +10:00
parent 967c2d4f19
commit 0849f7e936
2 changed files with 5 additions and 1 deletions

View File

@@ -136,7 +136,7 @@ if (isset($_POST['addoutcome']) && isset($_POST['save'])){
if (isset($_POST['default_o'])) $def = 1; else $def = 0;
if (isset($_POST['permanent'])) $perm = 1; else $perm = 0;
$sql = "INSERT INTO `outcome` VALUES ('NULL','$aapor_id','$desc','$ddm','$outcome_type_id','$tryanother','$contacted','$tryagain','$eligible','$require_note','$calc','$def','$perm')";
$sql = "INSERT INTO `outcome` VALUES (NULL,'$aapor_id','$desc','$ddm','$outcome_type_id','$tryanother','$contacted','$tryagain','$eligible','$require_note','$calc','$def','$perm')";
if ($db->Execute($sql)) {
$msg_ok = T_("Custom outcome") . " <b>" . $desc . "</b> " . T_("saved");
}