Bug in Manage_Table_SQL when an exception is thrown from ajax_input

This commit is contained in:
Dany De Bontridder 2018-01-09 14:15:21 +01:00
parent db048d3c54
commit 27d63f0104

View file

@ -961,15 +961,15 @@ function check()
catch (Exception $ex)
{
$s1=$xml->createElement("status", "NOK");
$s2=$xml->createElement("ctl", $this->object_name);
$s3=$xml->createElement("ctl", $this->object_name);
$s2=$xml->createElement("ctl_row",
$this->object_name+"_"+$this->table->get_pk_value());
$s3=$xml->createElement("html", $ex->getTraceAsString());
$s4=$xml->createElement("html", $ex->getTraceAsString());
$root=$xml->createElement("data");
$root->appendChild($s1);
$root->appendChild($s2);
$root->appendChild($s3);
$root->appendChild($s4);
}
$xml->appendChild($root);
return $xml;