diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-12-08 19:52:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-12-08 19:52:06 +0000 |
commit | 3274d865bba4fd9743f804edbb9d72188e1b6bb9 (patch) | |
tree | 2384e2711c49ff56b8e84614afee321b625f36a8 | |
parent | 9ee9ea6c8f3faa1fdc4f713471aa087cfd585feb (diff) | |
download | acf-provisioning-3274d865bba4fd9743f804edbb9d72188e1b6bb9.tar.bz2 acf-provisioning-3274d865bba4fd9743f804edbb9d72188e1b6bb9.tar.xz |
Fixed bug in deleting parameter with options
-rw-r--r-- | provisioning-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/provisioning-model.lua b/provisioning-model.lua index 61633d6..20b70e4 100644 --- a/provisioning-model.lua +++ b/provisioning-model.lua @@ -1167,10 +1167,10 @@ delete_param = function(param_id) else sql = "BEGIN TRANSACTION" runsqlcommand(sql) - sql = "DELETE FROM provisioning_params WHERE param_id='"..escape(param_id).."'" - runsqlcommand(sql, true) sql = "DELETE FROM provisioning_options WHERE param_id='"..escape(param_id).."'" runsqlcommand(sql, true) + sql = "DELETE FROM provisioning_params WHERE param_id='"..escape(param_id).."'" + runsqlcommand(sql, true) result = "Parameter Deleted" sql = "COMMIT" runsqlcommand(sql) |