Commit ec0e8faf authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 257152: make flag type deletion not crash when JavaScript is…

Patch for bug 257152: make flag type deletion not crash when JavaScript is switched off; patch by Marc Schumann <wurblzap@gmail.com>; r=kiko, a=myk.
parent e05cbb07
......@@ -74,7 +74,7 @@ elsif ($action eq 'edit') { edit(); }
elsif ($action eq 'insert') { insert(); }
elsif ($action eq 'update') { update(); }
elsif ($action eq 'confirmdelete') { confirmDelete(); }
elsif ($action eq 'delete') { &delete(); }
elsif ($action eq 'delete') { deleteType(); }
elsif ($action eq 'deactivate') { deactivate(); }
else {
ThrowCodeError("action_unrecognized", { action => $action });
......@@ -362,7 +362,7 @@ sub confirmDelete
}
sub delete {
sub deleteType {
validateID();
SendSQL("LOCK TABLES flagtypes WRITE, flags WRITE, " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment