diff --git a/module/execution/js/common.js b/module/execution/js/common.js
index 214e5cdf51..8bb7171a8d 100644
--- a/module/execution/js/common.js
+++ b/module/execution/js/common.js
@@ -1,19 +1,3 @@
-/**
- * Add link products required class.
- *
- * @access public
- * @return void
- */
-function addProductsRequiredClass()
-{
- $('#productsBox .input-group').removeClass('required');
- $('#productsBox .input-group').each(function()
- {
- $(this).addClass('required');
- return false;
- } );
-}
-
function switchStatus(projectID, status)
{
if(status) location.href = createLink('project', 'task', 'project=' + projectID + '&type=' + status);
@@ -155,7 +139,7 @@ function loadBranches(product)
if($('#productsBox .input-group:last select:first').val() != 0)
{
var length = $('#productsBox .input-group').size();
- $('#productsBox .row').append('
' + $('#productsBox .col-sm-4:last').html() + '
');
+ $('#productsBox .row').append('' + $('#productsBox .col-sm-4:last').html().replace('required', '') + '
');
if($('#productsBox .input-group:last select').size() >= 2) $('#productsBox .input-group:last select:last').remove();
$('#productsBox .input-group:last .chosen-container').remove();
$('#productsBox .input-group:last select:first').attr('name', 'products[' + length + ']').attr('id', 'products' + length);
@@ -182,7 +166,6 @@ function loadBranches(product)
var branchID = $('#branch' + index).val();
loadPlans(product, branchID);
});
- if(projectModel == 'kanban' || projectModel == 'waterfall') addProductsRequiredClass();
}
/**
diff --git a/module/execution/js/create.js b/module/execution/js/create.js
index a16676955d..2e76285f06 100644
--- a/module/execution/js/create.js
+++ b/module/execution/js/create.js
@@ -17,8 +17,6 @@ $(function()
$("input:radio[name='delta']").attr("checked", false);
})
- if(projectModel == 'kanban' || projectModel == 'waterfall') addProductsRequiredClass();
-
if(typeof(currentPlanID) == 'undefined')
{
$('#productsBox select[id^="products"]').each(function()
diff --git a/module/execution/js/edit.js b/module/execution/js/edit.js
index 3f8016dc3b..0c09b6bfe8 100644
--- a/module/execution/js/edit.js
+++ b/module/execution/js/edit.js
@@ -64,8 +64,6 @@ $(function()
}
});
- if(projectModel == 'kanban' || projectModel == 'waterfall') addProductsRequiredClass();
-
oldProject = $("#project").val();
$('#project').change(function()
{
diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php
index 941fc72b81..f013ee46ef 100644
--- a/module/execution/view/create.html.php
+++ b/module/execution/view/create.html.php
@@ -145,7 +145,7 @@