Исправления
This commit is contained in:
parent
79773503eb
commit
e1fa1c1f5a
|
@ -776,7 +776,7 @@ class Product extends Document
|
|||
*/
|
||||
public function activate(): bool
|
||||
{
|
||||
$this->stts = 'activate';
|
||||
$this->stts = 'active';
|
||||
|
||||
if ($this->update() > 0) return true;
|
||||
|
||||
|
|
|
@ -648,7 +648,7 @@ class Supply extends Product implements ProductInterface, OfferInterface
|
|||
$error = true;
|
||||
}
|
||||
|
||||
if (isset($product) && Account::isMinimalAuthorized($account)) {
|
||||
if ((isset($product) || $product = Product::searchByCatnAndProd($supply->catn, $supply->prod)) && Account::isMinimalAuthorized($account)) {
|
||||
// Авторизованный пользователь и найден товар
|
||||
|
||||
// Активация товара
|
||||
|
|
Reference in New Issue