bug in action.php
Brought to you by:
kirigoe,
sinner_prairy
Program wouldn't delete an action from the edit ticket
screen. May be due to using mysql extention.
My fix:
else if ($_GET['action'] == 'delete')
{
if ($_GET['confirm'])
{
$result = mysql_query("DELETE FROM $GLOBALS
[mysql_prefix]action WHERE id='$id'") or do_error
('action.php::del_action', 'mysql_query() failed',
mysql_error());
print '<FONT CLASS="header">Action
deleted</FONT><BR><BR>';
show_ticket($_GET[ticket_id]);
}
else
print "<FONT CLASS=\"header\">Really delete
action '$_GET[id]'?</FONT><BR><BR><FORM
METHOD=\"post\" ACTION=\"action.php?
action=delete&id=$_GET[id]&ticket_id=$_GET[ticket_id]
&confirm=1\"><INPUT TYPE=\"Submit\"
VALUE=\"Yes\"></FORM>";
}
Regards,
tilman.l@gmail.com