Skip to content

Instantly share code, notes, and snippets.

@incrize
Created December 2, 2020 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incrize/4dbb7775c0f35eb073faa242fe92574d to your computer and use it in GitHub Desktop.
Save incrize/4dbb7775c0f35eb073faa242fe92574d to your computer and use it in GitHub Desktop.
diff --git a/install/app/Installer/AddonsSetup.php b/install/app/Installer/AddonsSetup.php
index 2dd75598b7..6b2302d7fc 100644
--- a/install/app/Installer/AddonsSetup.php
+++ b/install/app/Installer/AddonsSetup.php
@@ -38,7 +38,9 @@ class AddonsSetup
Registry::clearCachedKeyValues(); // reset cache before installing an add-on
- if (fn_install_addon($addon_name, false, $install_demo, true) ) {
+ $install_demo_tmp = $install_demo || $addon_name === 'vendor_plans';
+
+ if (fn_install_addon($addon_name, false, $install_demo_tmp, true) ) {
// load add-on after install to properly use its schemes
if (SchemesManager::getScheme($addon_name)->getStatus() == 'A') {
fn_load_addon($addon_name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment