When editing an existing venue, the default value for the country code is not set correctly.

We have:

'#default_value' => !empty($venue->postal_code) ? $venue->postal_code : variable_get('eventbrite_api_country_code', 'US'),

Instead of:

'#default_value' => !empty($venue->country_code) ? $venue->country_code : variable_get('eventbrite_api_country_code', 'US'),

Comments

maxocub’s picture

Title: Wrong #default_value in venue_add_form() » Wrong #default_value for country code in venue_add_form()
maxocub’s picture

StatusFileSize
new677 bytes

Changed the name of the patch.

  • jamiehollern committed 35245c9 on 7.x-1.x
    Issue #2521974 by maxocub: Fixed wrong default value for the venue...
jamiehollern’s picture

Committed to latest dev and to release 7.x-1.3.

jamiehollern’s picture

Version: 7.x-1.2 » 7.x-1.3
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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