This commit is contained in:
Yagami
2021-04-06 09:41:45 +08:00
parent 4e779d7927
commit 45df4dea29
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -368,7 +368,9 @@ class product extends control
$this->app->loadLang('custom');
/* Init vars. */
$product = $this->product->getById($productID);
$product = $this->product->getById($productID);
if($product->bind) $this->config->product->edit->requiredFields = 'name';
$unmodifiableProjects = array();
$canChangeProgram = true;
$singleLinkProjects = array();
+1
View File
@@ -525,6 +525,7 @@ class productModel extends model
{
$productID = (int)$productID;
$oldProduct = $this->dao->findById($productID)->from(TABLE_PRODUCT)->fetch();
if($oldProduct->bind) $this->config->product->edit->requiredFields = 'name';
$product = fixer::input('post')
->setIF($this->post->acl == 'open', 'whitelist', '')