Item10971: can't change TABLEATTRIBUTES when used in persistent perl installations

Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Extension
Component: TablePlugin
Reported By: MichaelDaum
Waiting For:
Last Change By: GeorgeClark
Plugin attributes are red fom prefs only once and are not reset in initPlugin(). So when they change the plugin still uses the old settings internally.

-- MichaelDaum - 15 Jul 2011

I thought this had been fixed before.

-- ArthurClemens - 15 Jul 2011

Michael, Could you test the following patch and see if it helps? The settings didn't use the initialized flag but instead tested if the parameters hash exists. I'll commit this to trunk too but I don't have a tests fastcgi env.

diff --git a/TablePlugin/lib/Foswiki/Plugins/ b/TablePlugin/lib/Foswiki/Plugins/
index 6cfeebe..a26de99 100644
--- a/TablePlugin/lib/Foswiki/Plugins/
+++ b/TablePlugin/lib/Foswiki/Plugins/
@@ -43,6 +43,7 @@ sub initPlugin {
     $initialised   = 0;
     $writtenToHead = 0;
+    %pluginAttributes = ();
     debug( 'TablePlugin', "inited" );

-- GeorgeClark - 21 Sep 2011

Thats the same fix I use. Checking it in. Related to Item10456.

-- MichaelDaum - 21 Sep 2011

ItemTemplate edit

Summary can't change TABLEATTRIBUTES when used in persistent perl installations
ReportedBy MichaelDaum
Codebase 1.1.3, trunk
SVN Range
AppliesTo Extension
Component TablePlugin
Priority Normal
CurrentState Closed
Checkins distro:e8220ae510d7 distro:0b640afd3a6a distro:c98a2476a25b distro:16e2170f035f distro:8076323d1aae
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r11 - 17 Dec 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy