[MAGNOLIA-3791] New util method: ContentUtil.getAncestorOfType Created: 09/Aug/11 Updated: 16/Aug/11 Resolved: 10/Aug/11 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.5 |
| Type: | New Feature | Priority: | Neutral |
| Reporter: | Magnolia International | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Patch included: |
Yes
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Testcase included: |
Yes
|
||||||||
| Description |
|
Here's a little patch that adds a simple, yet useful and often rewritten method to retrieve a node's first ancestor of a given type. Meant to be added to the existing info.magnolia.cms.util.ContentUtil, not added a separate class. |
| Comments |
| Comment by Magnolia International [ 10/Aug/11 ] |
|
done on 4.4 branch, merged to trunk. |