Even if the field 'sub_premise' is 'not used', it does not deserve to be 'not supported'.

Irrespective the usage of the field by users, websites or formatters, it would be nice if it has the complete set of tokens, handers, etc.

Comments

johnv’s picture

Attached patch does a search & add for 'sub_premise', for every occurrence of 'premise' in :
- devel generate, tokens, views handler, etc.
- mailchimp apparently doesn't need this.
It also fixes a text error in 'premise'.

bojanz’s picture

Status: Needs review » Fixed

Committed, thanks.

  • bojanz committed f4cbee2 on 7.x-1.x authored by johnv
    Issue #2151903 by johnv: Make sub_premise whole
    
troybthompson’s picture

I've been looking for this support. I see the tokens, etc. How do I make it show up on the address form to collect this field, though?

bojanz’s picture

You would need to write your own plugin for that. The field is not meant to be used (you have two address lines that can hold all data).

Status: Fixed » Closed (fixed)

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

miaoulafrite’s picture

Status: Closed (fixed) » Active

Hello,

this feature is cool, however, addresses.txt file does not contain column for sub-premises, and then devel generate raises errors when generating content:

Notice: Undefined offset: 8 in _addressfield_sample_addresses() (line 48 of /drupalroot/sites/all/modules/contrib/addressfield/addressfield.devel_generate.inc).

Reason is the mismatch between source when

explode("\t", $buffer)

from addresses.txt

is assigned to

list($country, $administrative_area, $sub_administrative_area, $locality, $dependent_locality, $postal_code, $thoroughfare, $premise, $sub_premise)

please add a column for sub-premises in addresses.txt file.

miaoulafrite’s picture

StatusFileSize
new17.96 KB

It can be NULL but it has to exist.
Attached a new addresses.txt file with extra column for sub premises filled with NULL values.

bojanz’s picture

Status: Active » Fixed

Committed, thanks.

  • bojanz committed e4f387e on 7.x-1.x authored by miaoulafrite
    Issue #2151903 followup: Update addresses.txt for the sub_premise field.
    

Status: Fixed » Closed (fixed)

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