Исправления

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2022-04-14 09:59:17 +10:00
parent 79773503eb
commit e1fa1c1f5a
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ class Product extends Document
*/
public function activate(): bool
{
$this->stts = 'activate';
$this->stts = 'active';
if ($this->update() > 0) return true;

View File

@ -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)) {
// Авторизованный пользователь и найден товар
// Активация товара