[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Will Scheidegger updated MAGNOLIA-2669:
---------------------------------------

    Comment: was deleted

(was: Hm... not so sure anymore that my patch really solves the problem! Do we 
argree, that the node data value should be inherited from the closest ancestor 
node when the node itself has no node data with that name OR that node data is 
empy? It seems like only the first case is covered at this time. If you have an 
empty node data (e.g. the user cleared the field in the dialog) no node data 
value is inherited from the ancestor nodes.

If my assumption above is correct (i.e. inherit when no node data OR node data 
empty), then I think I can provide a patch for the problem.)

> <cms:out inherit="true" fails
> -----------------------------
>
>                 Key: MAGNOLIA-2669
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2669
>             Project: Magnolia
>          Issue Type: Bug
>          Components: templating
>    Affects Versions: 4.0.1
>         Environment: Windows Vista Business SP1
> JDK 1.6.0_11
> apache-tomcat-5.5.26
> magnolia-bundled-webapp-4.0.1.war
>            Reporter: Oliver Knorr
>            Assignee: Philipp Bärfuss
>            Priority: Critical
>             Fix For: 4.1.1, 4.0.x
>
>         Attachments: BaseContentTage.java.patch
>
>
> After upgrading from Magnolia 3.6.3 to 4.0.1, cms:out-Tags stopped printing 
> values inherited from parent pages. For example: <cms:out 
> nodeDataName="copyright" inherit="true" /> prints something only, if the 
> copyright-field is filled for the page, but no longer if it is filled only 
> for the parent page.
> Some debugging showed a different code path in BaseContentTag.resolveNode() 
> because of different results from Resource.getLocalContentNode().
> This seems to be caused by the changes for MAGNOLIA-2642. If I revert 
> Resource.java to the previous revision (from 
> http://svn.magnolia-cms.com/view/community/magnolia/trunk/magnolia-taglib-cms/src/main/java/info/magnolia/cms/taglibs/Resource.java?revision=21024),
>  the inherited fields work fine for me.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to