From bd641dc60018b73b2d59e83bf469a44e5dfa8490 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 7 May 2008 21:33:55 +0000 Subject: [PATCH] prep code for removing the Product macro from webgui.conf file --- docs/upgrades/upgrade_7.5.10-7.5.11.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index 8eccde38e..55d17c131 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -856,6 +856,13 @@ sub mergeProductsWithCommerce { #unlink '../../lib/WebGUI/Product.pm'; #unlink '../../lib/WebGUI/Operation/ProductManager.pm'; #unlink '../../lib/WebGUI/Macro/Product.pm'; + ##Disable the Product macro in the config file. You can't use the convenience method + #deleteFromHash since the macro name is in the value, not the key. + #my %macros = %{ $session->config->get('macros') }; + #foreach (my ($key, $value) = each %macros) { + # delete $macros{$key} if $value eq 'Product'; + #} + #$session->config->set('macros', \%macros); return 1; }