diff --git a/module/project/js/manageproducts.js b/module/project/js/manageproducts.js
index 6a9acaf13c..b33a8e76c5 100644
--- a/module/project/js/manageproducts.js
+++ b/module/project/js/manageproducts.js
@@ -128,7 +128,7 @@ function notice()
},
callback: function(result)
{
- if(result) $('div.form-actions').append("");
+ if(result) $('#submit').after("");
$('form#productsBox').submit();
}
}
diff --git a/module/project/model.php b/module/project/model.php
index 2cec3cbee9..ca3c45a74c 100644
--- a/module/project/model.php
+++ b/module/project/model.php
@@ -2369,6 +2369,11 @@ class projectModel extends model
}
$this->user->updateUserView($products, 'product', $members);
+ if((int)$projectID > 0 and !empty($_POST['division']))
+ {
+ $this->dao->update(TABLE_PROJECT)->set('division')->eq('1')->where('id')->eq((int)$projectID)->exec();
+ $this->dao->update(TABLE_EXECUTION)->set('division')->eq('1')->where('project')->eq((int)$projectID)->exec();
+ }
return !dao::isError();
}