diff --git a/db/update18.3.sql b/db/update18.3.sql index 062c9fcc37..67e915554a 100644 --- a/db/update18.3.sql +++ b/db/update18.3.sql @@ -945,7 +945,7 @@ CHANGE `extra` `extra` char(30) NOT NULL DEFAULT ''; ALTER TABLE `zt_release` CHANGE `project` `project` varchar(255) NOT NULL DEFAULT '0', -CHANGE `leftBugs` `leftBugs` text NULL; +CHANGE `leftBugs` `leftBugs` text NULL, CHANGE `notify` `notify` varchar(255) NOT NULL default ''; ALTER TABLE `zt_researchplan` diff --git a/module/api/model.php b/module/api/model.php index 6ff29d950e..936d5778df 100644 --- a/module/api/model.php +++ b/module/api/model.php @@ -781,8 +781,6 @@ class apiModel extends model $lib->baseUrl = $baseUrl; $lib->acl = 'open'; $lib->users = ',' . $currentAccount . ','; - $lib->addedBy = $currentAccount; - $lib->addedDate = helper::now(); $this->dao->insert(TABLE_DOCLIB)->data($lib)->autoCheck() ->batchCheck($this->config->api->createlib->requiredFields, 'notempty') ->check('name', 'unique', "`type` = 'api'") diff --git a/module/chart/control.php b/module/chart/control.php index f67f1b0b30..89803baf81 100644 --- a/module/chart/control.php +++ b/module/chart/control.php @@ -181,7 +181,7 @@ class chart extends control $sql = str_replace(';', '', "$post->sql"); $fields = $post->fieldSettings; - $langs = isset($post->langs) ? json_decode($post->langs, true) : array(); + $langs = !empty($post->langs) ? $post->langs : array(); switch($type) {