Menu

#6 bug in action.php

Unstable_(example)
open
nobody
None
5
2005-07-25
2005-07-25
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.