Download & Extend

Address name not showing in node view

Project:Addresses
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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?

Comments

#1

I am Having the same issue

#2

subscribing.

#3

Patch (one-line change).

AttachmentSize
addresses.patch 459 bytes

#4

Status:active» needs review

#5

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

Thanks!

#6

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.

AttachmentSize
addresses1.patch 472 bytes

#7

Status:needs review» reviewed & tested by the community

Confirmed independently.

#8

Patch in #6 works well, thanks.

#9

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

this is my code:

<?php

   
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.

#10

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

#11

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

#12

Status:fixed» closed (fixed)

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

nobody click here