From 57955c8a02df2e68569d15834c2192eceda160ee Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 22 Dec 2025 09:03:27 +0800 Subject: [PATCH] * [refac] change PM default value 0 to empty. --- module/program/config/form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/program/config/form.php b/module/program/config/form.php index 0f86f0139d..3c65d11f0f 100644 --- a/module/program/config/form.php +++ b/module/program/config/form.php @@ -6,7 +6,7 @@ $config->program->form = new stdclass(); $config->program->form->create['parent'] = array('type' => 'int', 'control' => 'picker', 'required' => false, 'default' => 0); $config->program->form->create['name'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim'); -$config->program->form->create['PM'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => 0); +$config->program->form->create['PM'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => ''); $config->program->form->create['budget'] = array('type' => 'float', 'control' => 'text', 'required' => false, 'default' => ''); $config->program->form->create['budgetUnit'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => 'CNY'); $config->program->form->create['begin'] = array('type' => 'date', 'control' => 'datepicker', 'required' => true, 'default' => ''); @@ -18,7 +18,7 @@ $config->program->form->create['whitelist'] = array('type' => 'array', 'cont $config->program->form->edit['parent'] = array('type' => 'int', 'control' => 'picker', 'required' => false, 'default' => 0); $config->program->form->edit['name'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim'); -$config->program->form->edit['PM'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => 0); +$config->program->form->edit['PM'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => ''); $config->program->form->edit['budget'] = array('type' => 'float', 'control' => 'text', 'required' => false, 'default' => ''); $config->program->form->edit['budgetUnit'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => 'CNY'); $config->program->form->edit['begin'] = array('type' => 'date', 'control' => 'datepicker', 'required' => true, 'default' => '');