CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • wee bug with addres locations
Pages: [1]

Author Topic: wee bug with addres locations  (Read 1355 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
wee bug with addres locations
April 02, 2009, 06:25:16 pm
Hi - on your demo site. Set up 2 x address locations. Made Home default.

Added new individual. Wanted their primary location to be Work, so selected from drop down. hit save. get error msg

Please correct the following errors in the form fields below:

    * Two locations cannot have same location type.


Why? Because if I then expand the 'additional location' i see that it is set to Work.

So I expand that and set it to - select - I get the msg

Please correct the following errors in the form fields below:

    * The Location Type should be set if there is any location information.

even though I put no data in there. so then i try collapsing the additional location in hope this will make it go away - but nothing improves.

If I go back to Location Types, and unselect the 'default' all is good. so I think there is something causing the 'additional location' to be filled by type, when it should not be. cheers
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: wee bug with addres locations
April 03, 2009, 11:52:47 am
Just adding to this, it seems that even though I have set no default for Primary Location, (and it therefore offers '-select-') as I expect, when I try and add a record with no address information I am now getting the message
"Please correct the following errors in the form fields below:
    * The Location Type should be set if there is any location information."
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: wee bug with addres locations
April 03, 2009, 11:56:50 am
Have added to JIRA http://issues.civicrm.org/jira/browse/CRM-4338
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: wee bug with addres locations
June 08, 2009, 06:47:37 pm
So just revisiting this (copied from JIRA).

When I create New Individual in sandbox after setting number of locations as 2 what I see is that if i expand 'additional location' it shows 'work' - I don't think this is correct behaviour. It suggests to me that there is a default 'order' set in the system which is not visible through the Admin settings.

When I set the first address to 'work' and then expand 'additional location' it shows the location as 'work' as well. However it does 'save'. So while the 'outcome' is okay, i still think there is something amiss in the database.

Also wondering what chance of having this patch in a 2.2 release as it is a right pain for several clients (am I the only one?)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: wee bug with addres locations
June 09, 2009, 06:51:37 am

1. yes there is a default order set by the system. The default location type is first, the rest are determined in the order mysql returns them

2. 2.3 is around the corner and this is not a critical issue. So we'd prefer not to do it. Backporting the patch should not be too hard

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: wee bug with addres locations
June 10, 2009, 03:18:33 am
Cool
BTW is it worth trying to tidy up the fix so that this doesn't happen
Quote
When I create New Individual in sandbox after setting number of locations as 2 what I see is that if i expand 'additional location' it shows 'work' - I don't think this is correct behaviour. It suggests to me that there is a default 'order' set in the system which is not visible through the Admin settings.

When I set the first address to 'work' and then expand 'additional location' it shows the location as 'work' as well. However it does 'save'. So while the 'outcome' is okay, i still think there is something amiss in the database.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

awirth

  • Guest
Re: wee bug with addres locations
June 18, 2009, 10:52:47 am
I am working in version 2.2.5, and we still have to set the additional address to "Home"--even though we don't have an additional address--if our primary address is "Work". Any other suggestions here? Is this being worked on? I'm not really bothered by it, but my boss is. ;-)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • wee bug with addres locations

This forum was archived on 2017-11-26.