diff --git a/module/task/ui/batchedit.html.php b/module/task/ui/batchedit.html.php
index 0f0993563f..e291617473 100644
--- a/module/task/ui/batchedit.html.php
+++ b/module/task/ui/batchedit.html.php
@@ -18,6 +18,14 @@ jsVar('teams', $teams);
jsVar('currentUser', $app->user->account);
jsVar('moduleGroup', $moduleGroup);
+$beforeSubmit = null;
+$childTasks = json_encode($childTasks);
+$nonStoryChildTasks = json_encode($nonStoryChildTasks);
+$tasksJsVar = json_encode($tasks);
+if(!empty($nonStoryChildTasks))
+{
+}
+
/* ====== Define the page structure with zin widgets ====== */
formBatchPanel
(
@@ -26,6 +34,8 @@ formBatchPanel
set::data(array_values($tasks)),
set::onRenderRow(jsRaw('renderRowData')),
set::customFields(array('list' => $customFields, 'show' => explode(',', $showFields), 'key' => 'batchEditFields')),
+ !empty($nonStoryChildTasks) ? set::ajax(array('beforeSubmit' => $beforeSubmit)) : null,
+ set::formID('taskBatchEditForm' . $executionID),
formBatchItem
(
set::name('id'),
@@ -58,6 +68,16 @@ formBatchPanel
set::defaultDitto('off')
),
formBatchItem
+ (
+ set::name('story'),
+ set::label($lang->task->story),
+ set::control('picker'),
+ set::items($stories),
+ set::width('200px'),
+ set::ditto(true),
+ set::defaultDitto('off')
+ ),
+ formBatchItem
(
set::name('assignedTo'),
set::label($lang->task->assignedTo),