The "additional" field for street is still show when set to "do not collect".

Not including a patch so that we don't have to reroll on a simple fix.

Current code: Location.module approx. Line 262

      // Only include 'Street Additional' if 'Street' is 'allowed' or 'required'
      if ($field == 'street' && $fsettings[$field]['collect']) {

Fix:

      // Only include 'Street Additional' if 'Street' is 'allowed' or 'required'
      if ($field == 'street' && $fsettings[$field]['collect'] && $fsettings['additional']['collect']) {
CommentFileSizeAuthor
#1 settings png30.91 KBjbomb
#1 form png12.23 KBjbomb

Comments

jbomb’s picture

StatusFileSize
new12.23 KB
new30.91 KB

Applied change to 6.x-3.0 with satisfactory results.

I can now elect to omit the "additional" field in User Locations.

However, I haven't had any luck requiring it. additionally the field seems to be directly tied to the "street" field, that is to say, that it appears directly below the "street" field even with the street weight set at 4, additional weight set at 30 with collection set to "allow" for other form elements with weights between 4 and 30 .

screen shots:

bdragon’s picture

Yep, it is tied to the street field, and I really don't know what the correct way to handle it is... I *wish* that Street had just been multiple line all along or something.

bdragon’s picture

Status: Needs review » Closed (duplicate)