* Fix bug #11363.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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', '')
|
||||
|
||||
Reference in New Issue
Block a user