Preferences stored in
WebTopicViewTemplate (as META::PREFERENCE or via 'Set') are not used when this topic is displayed for an inexistent topic.
The reason seems to be that TWIki::UI::readTemplateTopic() does not update the preferences cache. The following fix in lib/TWiki/UI.pm works for me:
sub readTemplateTopic {
... my ($meta, $text) = $session->{store}->readTopic( $session->{user}, $web, $theTopicName, undef );
$session->{prefs}->pushPreferences($web, $theTopicName, 'TOPIC');
return ($meta, $text);
}
This function is only used in three places in the whole TWiki source code so the impact of this change should be well understandable.
--
TWiki:Main/StefanWalter
- 2016-06-07