diff --git a/db/update8.1.3.sql b/db/update8.1.3.sql index 3c23a07cb4..e7e3635db4 100644 --- a/db/update8.1.3.sql +++ b/db/update8.1.3.sql @@ -1 +1,2 @@ ALTER TABLE `zt_module` ADD `short` varchar(30) COLLATE 'utf8_general_ci' NOT NULL AFTER `owner`; +ALTER TABLE `zt_usertpl` ADD `public` enum('0','1') COLLATE 'utf8_general_ci' NOT NULL DEFAULT '0'; diff --git a/module/bug/control.php b/module/bug/control.php index bcce7da4f4..b7201db518 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1069,7 +1069,14 @@ class bug extends control public function saveTemplate() { $this->bug->saveUserBugTemplate(); - if(dao::isError()) die(js::error(dao::getError())); + if(dao::isError()) + { + $error = js::error(dao::getError()); + /* Remove html and meta tag and only get script */ + $error = substr($error, strpos($error, ' $template) { echo "