Reviewed & tested by the community
Project:
Postal Code
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2013 at 09:01 UTC
Updated:
30 Oct 2019 at 16:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jeremyclassic commentedComment #2
lslinnet commentedWhen you assign the value of the postal_code field, use the "value" array element instead of "postal_code" e.g.
Comment #3
lslinnet commentedComment #4
jeremyclassic commented@Islinnet - please provide a patch. Your solution above does not fully solve the problem.
This will break current implementations of the field and does not have (as far as I can tell) an easy migration path to cleanup pre-existing fields.
I've attached a patch that does exactly what you're asking. Perhaps you could point me in the direction of information on, or supply a patch for, updating the field definitions.
Comment #5
jeremyclassic commentedComment #6
mustanggb commentedEntity API integration is super handy, here is a patch that updates current installs to the new implementation (
postal_code_update_7100()), and adds the final missing piece to allow integration (property_typeandproperty_callbacks).Comment #7
mustanggb commentedActually might as well fix the whitespace in
postal_code_field_info()as well.Comment #8
mustanggb commentedAdded an occurance that jeremyclassic missed.
Comment #9
mustanggb commentedAny maintainers around?