There are a lot of use cases, where the original value of the replaced legacy field needs to be retained, to be available on loaded and entites with synced replacement fields, so the original value can be used programatically, if needed. Examples are:

* consistent taxonomy term sorting (term, name(original))
* admin overviews (where you perhaps want to display the original title of a node, for example)

Let's save these original legacy values to an LEGACYFIELDNAME_original property of the synced entity in title_field_sync_get();

Comments

danielnolde’s picture

StatusFileSize
new781 bytes

Find attached the patch to meet above request. Would be great if we can have this committed!

danielnolde’s picture

Status: Active » Needs review
danielnolde’s picture

This fix is currently needed for example by the fix for facetapi_taxonomy_sort.module: http://drupal.org/node/1445876

plach’s picture

Status: Needs review » Fixed
StatusFileSize
new786 bytes

Sorry, I totally missed this one.

Committed and pushed the attached patch (only cosmetic changes).

Status: Fixed » Closed (fixed)

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

  • Commit edd46e3 on 7.x-1.x, workbench authored by danielnolde, committed by plach:
    Issue #1445848 by danielnolde: Added Retain the original legacy field...