diff --git a/module/execution/view/batchedit.html.php b/module/execution/view/batchedit.html.php
index b132bc9fbe..2a606d1224 100755
--- a/module/execution/view/batchedit.html.php
+++ b/module/execution/view/batchedit.html.php
@@ -106,8 +106,8 @@
?>
'>execution->statusList, $executions[$executionID]->status, 'class=form-control');?> |
- begin, "id='begins{$executionID}' class='form-control form-date' onchange='computeWorkDays(this.id)'");?> |
- end, "id='ends{$executionID}' class='form-control form-date' onchange='computeWorkDays(this.id)'");?> |
+ begin, "class='form-control form-date' onchange='computeWorkDays(this.id)'");?> |
+ end, "class='form-control form-date' onchange='computeWorkDays(this.id)'");?> |
'> desc, "rows='1' class='form-control autosize'");?> |
'>team, "class='form-control'");?> |
'>
@@ -154,7 +154,7 @@ $('#executionForm').submit(function()
/* Clear all error messages. */
$('input[name^=begins]').each(function()
{
- var beginDateID = $(this).attr('id');
+ var beginDateID = $(this).attr('id').replace(/\[|]/g, '');
var endDateID = beginDateID.replace('begins', 'ends');
$('#help' + beginDateID).remove();
$('#help' + endDateID).remove();
@@ -164,7 +164,7 @@ $('#executionForm').submit(function()
$('input[name^=begins]').each(function()
{
var beginDate = $(this).val();
- var beginDateID = $(this).attr('id');
+ var beginDateID = $(this).attr('id').replace(/\[|]/g, '');
var nameID = beginDateID.replace('begins', 'names');
var endDateID = beginDateID.replace('begins', 'ends');
|