Item8759: AutoViewTemplatePlugin should check TemplateTopic in both view and edit context

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Extension
Component: AutoViewTemplatePlugin
Branches:
Reported By: OliverKrueger
Waiting For: Main.OliverKrueger, Main.MichaelDaum
Last Change By: KennethLavrsen
In edit context this plugin checks the existence of the template topic. In view context it does not.

Fixing that.

-- OliverKrueger - 23 Mar 2010

This breaks templating as view templates are read even for non-view and non-edit actions thus defining tmpl macros that are normally not there. As far as I know, only edit needs a check if the edit template exists. View is robust on its own.

Oliver, could you please check what your original intent of this change was?

Making it urgent as it is a core plugin.

-- MichaelDaum - 15 Apr 2010

Umm,... what about checking for a view or edit context? Am I too cautious? wink I had no further intents, so feel free to partly revert my changes (or let me add a check for the context).

-- OliverKrueger - 29 Apr 2010

Reverted.

-- OliverKrueger - 09 May 2010
Topic revision: r7 - 13 Sep 2010, KennethLavrsen
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