Created
January 26, 2021 07:16
-
-
Save ichaykin/8ea133c6e140e8a962cd0be61313e6d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/vendor_plans/func.php b/app/addons/vendor_plans/func.php | |
index 96b0edc462..ee17737a29 100644 | |
--- a/app/addons/vendor_plans/func.php | |
+++ b/app/addons/vendor_plans/func.php | |
@@ -196,6 +196,7 @@ function fn_vendor_plans_update_company(&$company_data, &$company_id, &$lang_cod | |
&& $company_data['status'] != VendorStatuses::NEW_ACCOUNT | |
) { | |
$company = Company::model()->find($company_id); | |
+ $company->setParam('lang_code', $company->lang_code); | |
/** @var \Tygh\Notifications\EventDispatcher $event_dispatcher */ | |
$event_dispatcher = Tygh::$app['event.dispatcher']; | |
$event_dispatcher->dispatch('vendor_plans.plan_changed', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/vendor_plans/Tygh/Models/Company.php b/app/addons/vendor_plans/Tygh/Models/Company.php | |
index a3071d60e1..be0aad407b 100644 | |
--- a/app/addons/vendor_plans/Tygh/Models/Company.php | |
+++ b/app/addons/vendor_plans/Tygh/Models/Company.php | |
@@ -509,4 +509,10 @@ class Company extends AModel | |
return isset($this->current_attributes['email']) ? $this->current_attributes['email'] : ''; | |
} | |
+ | |
+ /** @inheritdoc */ | |
+ public function setParam($key, $value) | |
+ { | |
+ return $this->params[$key] = $value; | |
+ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment