* Fix bug #46985, hidden longTime checkbox in no-execution project.

This commit is contained in:
liumengyi
2024-03-14 13:47:22 +08:00
parent 2b0139f8ef
commit 9129431f10
3 changed files with 3 additions and 1 deletions
-1
View File
@@ -48,7 +48,6 @@ unset($lang->project->endList[999]);
$isLongTime = data('project.end') == LONG_TIME;
$fields->field('begin')
->label($lang->project->planDate)
->checkbox(array('text' => $lang->project->longTime, 'name' => 'longTime', 'checked' => $isLongTime))
->required()
->controlBegin('dateRangePicker')
->beginName('begin')
+1
View File
@@ -37,6 +37,7 @@ if($hasCode)
$fields->field('begin')
->tip($copyProject ? $lang->project->copyProject->endTips : null)
->tipClass('text-warning');
if(!$copyProject || data('copyProject.multiple') != '0') $fields->field('begin')->checkbox(array('text' => $lang->project->longTime, 'name' => 'longTime', 'checked' => false));
$fields->field('days')
->control('input', array('className' => $copyProject ? 'has-warning' : ''))
+2
View File
@@ -14,6 +14,8 @@ if(in_array($model, array('scrum', 'kanban'))) $fields->field('name')->checkbox(
$fields->field('hasProduct')->disabled(true);
if(data('project.multiple') != '0') $fields->field('begin')->checkbox(array('text' => $lang->project->longTime, 'name' => 'longTime', 'checked' => data('project.end') == LONG_TIME));
$budgetFuture = data('project.budget') !== null && !data('project.budget');
if(strpos($config->project->edit->requiredFields, 'budget') === false) $fields->field('budget')->checkbox(array('text' => $lang->project->future, 'name' => 'future', 'checked' => $budgetFuture));
$fields->field('budget')->value(data('project.budget') !== null && data('project.budget') == 0 ? '' : data('project.budget'));