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 (Moderator: Dave Greenberg) »
  • Current Employer field acting buggy.
Pages: [1]

Author Topic: Current Employer field acting buggy.  (Read 1215 times)

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Current Employer field acting buggy.
July 24, 2012, 10:09:36 am
If I have two companies, say, Target and T, if a user edits a contact record for someone that has Target as a current employer, sometimes it changes to T after the edit is saved, even if the user doesn't select the current employer field at all.

Anyone else seeing this? Any fix available?

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: Current Employer field acting buggy.
July 24, 2012, 12:57:29 pm
Not observed that no. How easy is it to replicate - can you do so on the demo?
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: Current Employer field acting buggy.
July 25, 2012, 03:15:56 am
Any chance you are using Shared Address on any of these contacts?
We just hit an odd outcome.
Ind A had Org B as the Current Employer
And was sharing Org B's address

When we tried to just change the Current Employer, it refused to store the change (ie it 'saved' but nothing 'changed'). Finally I spotted the 'shared address' and unset that and was then able to save the change to Employer too.
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

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Current Employer field acting buggy.
July 25, 2012, 04:35:33 pm
The field works fine for admin users, but I have regular users editing their data.

If I open the contact record as an admin the correct value shows.

If I open it as a regular user I only get the first letter. If I disable Javascript and open it as a regular user I don't get anything. If I enter a value it does not save.

I don't know about shared addresses. Hell, if we could use this as just a text box that wasn't linked to anything else that would be preferable. We just want to record where someone works, not create/maintain a record for the company.

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: Current Employer field acting buggy.
July 25, 2012, 11:37:27 pm
Then will it work to just add a Custom text field?
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

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Current Employer field acting buggy.
July 26, 2012, 11:47:23 am
They upgraded from an older version of CiviCRM and can't lose their existing data.

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: Current Employer field acting buggy.
July 26, 2012, 01:14:37 pm
I don't see how that answer connects to the suggestion of using a new Custom Field - for existing data - either copy data across via sql - or just export and reimport that field plus the contacts civi ID
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

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Current Employer field acting buggy.
July 26, 2012, 07:33:38 pm
Switching to a custom field isn't really an option right now.

If I can't disable the auto-complete, then just figuring out why non-admin users only get the first letter in the Current Employer field, and finding out how to fix this, would be good.

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Current Employer field acting buggy.
July 26, 2012, 10:04:45 pm
I think I've found more information:

If I look at the code for the page I find this:

var dataUrl = "/civicrm/ajax/rest?className=CRM_Contact_Page_AJAX&fnName=getContactList&json=1&context=contact&org=1&id=" + employerId + "&employee_id=" + cid ;

If I fill in the variables and go to the URL in a browser where I'm logged in as the admin I get this as a result:
Comapny|2210

If I go to the same URL but I'm logged in as a normal user I get:
C|C
2|2

Could this be a permissions issue?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Current Employer field acting buggy.
July 27, 2012, 06:33:06 am
This might also be related to http://issues.civicrm.org/jira/browse/CRM-10605

Kurund
Found this reply helpful? Support CiviCRM

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: Current Employer field acting buggy.
July 27, 2012, 03:11:17 pm
possibly but the behaviour we were hitting that triggered that ticket does not resemble the above issue - what we were seeing including on demo, was a black error below the autocomplete, which when moused over show two white bands
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Current Employer field acting buggy.

This forum was archived on 2017-11-26.