From faad718cad85fc35e0fdc14d1cbc1d3cd8925674 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 29 Nov 2022 13:30:44 +0800 Subject: [PATCH] * Validate data of zahost before create it. --- config/zentaopms.php | 2 ++ module/zahost/config.php | 1 + 2 files changed, 3 insertions(+) diff --git a/config/zentaopms.php b/config/zentaopms.php index 974fc0f9c5..92b9eee1a2 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -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`'); diff --git a/module/zahost/config.php b/module/zahost/config.php index 2b612315c3..934e0a3c96 100644 --- a/module/zahost/config.php +++ b/module/zahost/config.php @@ -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'); +