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) »
  • Custom Data Options - intermittent editing wierdness
Pages: [1]

Author Topic: Custom Data Options - intermittent editing wierdness  (Read 1207 times)

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Custom Data Options - intermittent editing wierdness
May 29, 2008, 04:20:29 pm
We've imported a number of policy issues as custom data options, and are seeing some strangeness in their behaviour in the system when trying to edit the multiple choice options. Some of the behaviours observed include:

 * On saving a multi-choice option, CiviCRM may refuse to save details when no changes were made in the form, stating that there are already existing fields with the same value/label. (See attached image Picture 66.png)
 * On saving a multi-choice option, CiviCRM may fail to save the details and fail to give any error. This happened for me when I deactivated the "default" option on a field which was showing "default".
 * CiviCRM sometimes shows a multi-choice option as "default" when the entry in the database has is_default = NULL or 0. (So far I've only seen it display one option as default, when there were 20 with is_default = 0 and 86 with is_default IS NULL.)

I'm debugging this currently in the hope that I can shed more light on it. I'd appreciate any suggestions that other users can offer.
« Last Edit: May 29, 2008, 04:30:05 pm by xurizaemon »
@xurizaemon ● www.fuzion.co.nz

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Custom Data Options - intermittent editing wierdness
May 29, 2008, 05:19:00 pm
I think that this may be related to CRM-2876, though it's different in behaviour. I found that I could reproduce this error ...

Quote
Please correct the following errors in the form fields below:
    * There is an entry with the same label.
    * There is an entry with the same value.

... by following these steps:

 1. Open multiple choice option AAA, then ignore this window.
 2. Open (in another tab) multiple choice option BBB
 3. Save multiple choice option BBB

Or by using these steps:

 1. Open multiple choice option AAA
 2. Make no changes, and press save
 3. Open multiple choice option AAA again
 4. On second save, the error displayed is the one above.

This seems an inversion of CRM-2876; the update fails to apply to the correct option (perhaps it gets the option to exclude from matching from AAA and other values from BBB). In CRM-2876 the update is wrongly applied to the most recently opened contact.
@xurizaemon ● www.fuzion.co.nz

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Custom Data Options - intermittent editing wierdness
June 02, 2008, 10:38:33 pm
It seems like the problems were introduced when the custom data entries were edited using several tabs at once. Once that had happened, the custom data settings were a bit messed up and it became difficult to fix it through the UI, requiring some DB changes to restore the correct setup.

Some banking sites use (highly annoying) JavaScript to prevent the use of tabs etc. While it's horrid, this would at least prevent anyone else getting into the same situation. Is it worth considering something like this? If multiple tabs are a no-no for CiviCRM, then would we perhaps be better off annoying the folks who use them with warnings rather than risking them messing up their data?

I think CRM-2876 is particularly gruesome because there is no error displayed - generally the data is saved, but to the wrong record (whether it's a custom data option or a contact's address). Very much looking forward to this one being fixed.
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom Data Options - intermittent editing wierdness

This forum was archived on 2017-11-26.