From 27d63f01048c0f35fc2301ffab51316b93b27d0e Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 9 Jan 2018 14:15:21 +0100 Subject: [PATCH] Bug in Manage_Table_SQL when an exception is thrown from ajax_input --- include/lib/manage_table_sql.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index 22c4ff666..d4f113dd0 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -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;