Download & Extend

Diff integration: In piped values, the key appears

Project:Content Construction Kit (CCK)
Version:6.x-2.9
Component:General
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

If I define piped allowed values

key|value

or php allowed values

return array(
  'key' => t('Value'),
);

Then in the diff the key appears, instead of the value.

(btw, Please add Diff integration in the 'Component'.)

Comments

#1

Version:6.x-2.x-dev» 6.x-2.9
Category:feature request» bug report
Status:active» needs review

i fixed this in the default hook for content fields (which also handles option widgets with allowed values), im checking if the field has any allowed values, and if it has and we have a display value for the current field value - it diffs the display values instead
patch attached

AttachmentSize
cck-diff-allowed-values.patch 634 bytes
nobody click here