Foswiki on GitHub is open for business! Next release meeting: Monday Nov. 17, 1300Z

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

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension TablePlugin  
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/TablePlugin.pm b/TablePlugin/lib/Foswiki/Plugins/TablePlugin.pm
index 6cfeebe..a26de99 100644
--- a/TablePlugin/lib/Foswiki/Plugins/TablePlugin.pm
+++ b/TablePlugin/lib/Foswiki/Plugins/TablePlugin.pm
@@ -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
WaitingFor
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 CopyrightStatement. Creative Commons License