summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-09-03 18:58:00 +0200
committerjocuri%softhome.net <>2004-09-03 18:58:00 +0200
commitec0e8fafb145d529948cefd894c83aae28c1f6d8 (patch)
tree6432b6cf928730d6f800368c91b90d73ca58f7db /editflagtypes.cgi
parente05cbb077ce6d23e6b35506c3fdd1e0a3bdb488d (diff)
downloadbugzilla-ec0e8fafb145d529948cefd894c83aae28c1f6d8.tar.gz
bugzilla-ec0e8fafb145d529948cefd894c83aae28c1f6d8.tar.xz
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.
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index bb1b86ec0..d0d33951f 100755
--- a/editflagtypes.cgi
+++ b/editflagtypes.cgi
@@ -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, " .