Address is all showing fine except the name field. I originally did not have it turned on. I turned it on, entered a value in name and the node retains it (shows when I re-edit it) but does not show when viewing the node and not in a view either. I made sure in content type field management that the display was set on.

I think it may have something to do with the fact that I originally did not have it turned on when I defined the field in the content type. Or perhaps I'm missing something?

CommentFileSizeAuthor
#6 addresses1.patch472 bytesPhylock
#3 addresses.patch459 bytesgjvoosten

Comments

nonsparker’s picture

I am Having the same issue

goodeit’s picture

subscribing.

gjvoosten’s picture

StatusFileSize
new459 bytes

Patch (one-line change).

gjvoosten’s picture

Status: Active » Needs review
goodeit’s picture

wow, good find! Patch works for me, name seems to display fine.

Thanks!

Phylock’s picture

StatusFileSize
new472 bytes

I would remove the $values['primary']as well, its an unknown variable and if its the $aname['is_primary'] its referring to, it's a boolean value and it can't be printed out the way.

mrtoner’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed independently.

dboulet’s picture

Patch in #6 works well, thanks.

paul o brien’s picture

addresses1.patch did not work for me, maybe because i am using a template.

this is my code:

	if ($node->field_procedaddress2[0]['aname']) {echo $node->field_procedaddress2[0]['aname'] .", "; }
	if ($node->field_procedaddress2[0]['street']) { echo $node->field_procedaddress2[0]['street'] .", "; }
	if ($node->field_procedaddress2[0]['additional']) { echo $node->field_procedaddress2[0]['additional'] .", "; }
	if ($node->field_procedaddress2[0]['city']) { echo '<br/>'. $node->field_procedaddress2[0]['city'] ; }
	if ($node->field_procedaddress2[0]['postal_code']) { echo "  ". $node->field_procedaddress2[0]['postal_code']; 
} 

All printed except Address Name. the problem is 'aname'. change to 'name' and all is fine.

budda’s picture

patch in comment #6 worked for me. Been tracing addresses module for ages to find it, then discovered a patch already!

jantoine’s picture

Version: 6.x-1.05 » 6.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

The patch in #6 has been committed. Thanks all for the work on this.

Cheers,

Antoine

Status: Fixed » Closed (fixed)

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