Merge branch 'master' of github.com:easysoft/zentaopms

This commit is contained in:
chenfeiCF
2016-03-31 11:04:59 +08:00
12 changed files with 60 additions and 19 deletions
+8 -1
View File
@@ -1075,7 +1075,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, '<script'));
$error = substr($error, 0, strpos($error, '</script') + 9);
echo $error;
}
die($this->fetch('bug', 'buildTemplates'));
}