* add vision field for task creation.
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
$(function()
|
||||||
|
{
|
||||||
|
for(var index = 0; index <= 9; index++) $('#batchCreateForm').append(`<input type="hidden" name="vision[${index}]" id="vision[${index}]" value="lite">`);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
$(function()
|
||||||
|
{
|
||||||
|
$('.main-form tr.hide > td').append('<input type="hidden" name="vision" id="vision" value="lite">');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -316,6 +316,7 @@ class taskModel extends model
|
|||||||
$data[$i]->openedBy = $this->app->user->account;
|
$data[$i]->openedBy = $this->app->user->account;
|
||||||
$data[$i]->openedDate = $now;
|
$data[$i]->openedDate = $now;
|
||||||
$data[$i]->parent = $tasks->parent[$i];
|
$data[$i]->parent = $tasks->parent[$i];
|
||||||
|
$data[$i]->vision = isset($tasks->vision[$i]) ? $tasks->vision[$i] : 'common';
|
||||||
if($story) $data[$i]->storyVersion = $this->loadModel('story')->getVersion($data[$i]->story);
|
if($story) $data[$i]->storyVersion = $this->loadModel('story')->getVersion($data[$i]->story);
|
||||||
if($assignedTo) $data[$i]->assignedDate = $now;
|
if($assignedTo) $data[$i]->assignedDate = $now;
|
||||||
if(strpos($this->config->task->create->requiredFields, 'estStarted') !== false and empty($estStarted)) $data[$i]->estStarted = '';
|
if(strpos($this->config->task->create->requiredFields, 'estStarted') !== false and empty($estStarted)) $data[$i]->estStarted = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user