* Validate data of zahost before create it.

This commit is contained in:
caoyanyi
2022-11-29 13:30:44 +08:00
parent 39cbc4f2b5
commit faad718cad
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -256,6 +256,8 @@ define('TABLE_USERTPL', '`' . $config->db->prefix . 'usertpl`');
define('TABLE_ZAHOST', '`' . $config->db->prefix . 'host`');
define('TABLE_IMAGE', '`' . $config->db->prefix . 'image`');
if(!defined('TABLE_ASSET')) define('TABLE_ASSET', '`' . $config->db->prefix . 'asset`');
define('TABLE_PRODUCT', '`' . $config->db->prefix . 'product`');
define('TABLE_BRANCH', '`' . $config->db->prefix . 'branch`');
define('TABLE_EXPECT', '`' . $config->db->prefix . 'expect`');
+1
View File
@@ -48,3 +48,4 @@ $config->zahost->search['params']['editedDate'] = array('operator' => '=',
$config->zahost->editor = new stdclass();
$config->zahost->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
$config->zahost->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools');