Hello,
I'm using the phpgrid_error function to communicate an error msg to the user
in the 'on_delete' custom function. In that case the dialog is not showing
the text I passed as a parameter to the phpgrid_error function, because there is already another dialog on the screen. When you click the 'delete' a dialog pops up asking if you're sure to delete the selected records. When using the phpgrid_error in 'on_delete' function, next msg is given : 'error Status: "Internal Error". Error code: 500.
In other functions like 'on_insert' the phpgrid_error is working fine.
I am unable to generate this issue. Working as expected here.
$e["on_delete"] = array("del", null, false);
$grid->set_events($e);
function del($d)
{
phpgrid_error("You don't have rights to delete");
}
Hi Abu,
same issue here with the last build.
but only when you click delete button from action column , if you click delete icon from footer row , phpgrid_error work fine.
probably because dialog box is already open ?
It's fixed in v1.5.2. Updates can be requested via email.
PS: Chao, emailed you update.