* Fix bug #48596.
This commit is contained in:
@@ -43,7 +43,8 @@ class formSettingBtn extends wg
|
||||
set::name('fields[]'),
|
||||
set::value($field),
|
||||
set::text($text),
|
||||
set::checked($showFields ? in_array($field, $showFields) : true)
|
||||
set::checked($showFields ? in_array($field, $showFields) : true),
|
||||
empty($text) ? set::rootClass('hidden') : null
|
||||
);
|
||||
}
|
||||
return $items;
|
||||
|
||||
@@ -165,3 +165,8 @@ function loadLanes(event)
|
||||
if(!$row.find('td[data-name="region"][data-ditto="on"]').length) break;
|
||||
}
|
||||
}
|
||||
|
||||
$('#formSettingBtn').on('click', '.checkbox-primary [value=story]', function()
|
||||
{
|
||||
$('#formSettingBtn .checkbox-primary [value=preview], #formSettingBtn .checkbox-primary [value=copyStory]').prop('checked', $('#formSettingBtn .checkbox-primary [value=story]').prop('checked'));
|
||||
})
|
||||
|
||||
+5
-1
@@ -353,6 +353,10 @@ class taskZen extends task
|
||||
$stories = $this->story->getExecutionStoryPairs($execution->id, 0, 'all', $story ? $story->module : 0, 'short', 'active');
|
||||
|
||||
list($customFields, $checkedFields) = $this->getCustomFields($execution, 'batchCreate');
|
||||
if(isset($customFields['story'])) $customFields['preview'] = $customFields['copyStory'] = '';
|
||||
|
||||
$showFields = $this->config->task->custom->batchCreateFields;
|
||||
if(strpos(",$showFields,", ',story,') !== false) $showFields .= ',preview,copyStory';
|
||||
|
||||
$this->view->title = $this->lang->task->batchCreate;
|
||||
$this->view->execution = $execution;
|
||||
@@ -368,7 +372,7 @@ class taskZen extends task
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->checkedFields = $checkedFields;
|
||||
$this->view->hideStory = $this->task->isNoStoryExecution($execution);
|
||||
$this->view->showFields = $this->config->task->custom->batchCreateFields;
|
||||
$this->view->showFields = $showFields;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user