Download & Extend

Add lineage_strip_weights() and refactor field handler to use this function

Project:Taxonomy Lineage
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:xjm
Status:closed (fixed)

Issue Summary

The lineage API appends weight string names to term names when lineages are stored, and so should also include a function to reverse the process. (Currently, the weight strings are removed "manually" in the views field handler.)

The following issues would both benefit from this change:
#555316: Views 2: Improve field handler
#612908: Add lineage nested list style plugin

Comments

#1

Status:active» needs review

The attached patch implements this change. Patch applied to the current dev build on my sandbox and tested with several views; works fine.

Note: Patch is at the directory level since multiple files are affected, so to patch use the -p option:
...drupal/sites/all/modules/lineage $ patch -p1 < lineage-699198-1.patch

AttachmentSize
lineage-699198-1.patch 2.17 KB

#2

Status:needs review» fixed

Committed to dev branch.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here