* Fix project manage products bug.

This commit is contained in:
Yagami
2022-11-25 14:10:07 +08:00
parent c9bcde900d
commit 76b3882e55
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ function notice()
},
callback: function(result)
{
if(result) $('div.form-actions').append("<input type='hidden' value='1' name='division'>");
if(result) $('#submit').after("<input type='hidden' value='1' name='division'>");
$('form#productsBox').submit();
}
}
+5
View File
@@ -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();
}