From d61d009a359c019dcdf1ff48075ac20cbc0fb877 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 24 Jun 2024 10:41:13 +0800 Subject: [PATCH] * [bug#51369,done,0.2h] remove budget from requiredFields. --- module/custom/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/custom/model.php b/module/custom/model.php index fd231b669f..6186857589 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -567,6 +567,7 @@ class customModel extends model foreach(explode(',', $fieldList) as $fieldName) { if($moduleName == 'user' && $method == 'edit' && strpos($this->config->user->contactField, $fieldName) === false) continue; + if($moduleName == 'project' && $fieldName == 'budget' && $this->config->vision == 'lite') continue; if($fieldName == 'comment') $fields[$fieldName] = $this->lang->comment; if(isset($moduleLang->{$fieldName}) && is_string($moduleLang->{$fieldName})) $fields[$fieldName] = $moduleLang->$fieldName;