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) »
  • how do I work around the form session bug?
Pages: [1]

Author Topic: how do I work around the form session bug?  (Read 1509 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
how do I work around the form session bug?
March 08, 2010, 12:43:41 pm
The staff that I support are having issues with editing data with multiple tabs open. It seems there is a bug in Civi that affects a lot of different forms, making it dangerous to edit multiple pages at once. Exactly how does this bug behave? What are the clear steps to work around it? When will it be fixed?

For example, one staff member reported that he was editing the "thank-you" section of a contribution page by copy-pasting some bits of text from the "thank-you" section of another contribution page... and once it happened that all the information in the fields was erased upon clicking the "ok" confirmation to navigate away from unsaved changes, and then another time it happened where all the values for one page were overwritten with the values from another. I have heard similar stories from staff members about editing contacts. These cases are complex enough where I have trouble reliably reproducing them, but they happen often enough for me to be pretty positive that there is a serious bug here.

What instruction can I provide staff in order to avoid these issues? Clearly having only one tab open at a time is a huge limitation in workflow efficiency, and also it will be nearly impossible to enforce.

I'm using CiviCRM 3.1.1 and Drupal 6.9 with PHP 5.2.10 and MySQL 5.1.37
« Last Edit: March 08, 2010, 12:45:43 pm by Sean Madsen »

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: how do I work around the form session bug?
March 08, 2010, 09:15:24 pm

hey sean:

1. yes, this is a big issue and we hope that it will be fixed in a future release. We you / your org can help contribute to fixing this bug that would be great.

2. Its a non-trivial issue, hence it still exists. The basic premise is always have only ONE edit window/tab open for any object (i.e. contact or Contribution Page or Event Page etc)

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: how do I work around the form session bug?
March 08, 2010, 10:35:58 pm
isn't it going to be fixed on the 3.2 ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: how do I work around the form session bug?
March 09, 2010, 06:33:21 am

its on the roadmap for 3.2, but nothing is guaranteed on that roadmap. If something is super important to folks, contributing a patch/sponsoring the work will ensure it gets into 3.2

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

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
Re: how do I work around the form session bug?
March 12, 2010, 10:27:50 am
Quote from: Donald Lobo on March 08, 2010, 09:15:24 pm
The basic premise is always have only ONE edit window/tab open for any object (i.e. contact or Contribution Page or Event Page etc)

Sometimes it's not really realistic to use only one edit window, though. For example, copying the thank-you and receipting settings from one contribution page to another... you have to have the edit window open to read the data from the source contribution page, and you have to have the edit page open to write the data in the target contribution page. Because there are so many different fields on the page, it would be a big burden to copy paste each individual field into a separate text file (for example).

My instruction to staff for such cases is as follows: "When ever you save a page you are editing, make sure that the page you are editing is the page you have most recently loaded in your web browser."

The above instructions are base on the following observations from me:
  • problems seem to arise when: loading "edit-page-1", then loading "edit-page-2", then making changes to "edit-page-1", and saving "edit-page-1"
  • problems don't seem to arise when: loading "edit-page-2", then loading "edit-page-1", then making changes to "edit-page-1", and saving "edit-page-1"

Even with these instructions though, staff are still having problems; so I'd like to get a better understanding of exactly what steps produce unexpected behavior. Surely someone else must know better than me since my hypothesis (and consequent instruction to staff) is based purely on simplistic observation. Can anyone offer a more specific (or more accurate) guideline for how to work around this bug in a way that will allow people to copy values from one page into another page?

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: how do I work around the form session bug?
March 12, 2010, 11:42:14 am

we've been bitten by exactly that same process workflow and do agree that its awful :( We do hope to fix this for 3.2, if community folk can help fund this it would be even better.

Here's what we do in the below scenario:

* Use Copy Event/Contribution page to create a new copy of the event. Edit the new copy, you have all the old values

OR

* For events: use Event templates and put all the primary fields

in general, i would not recommend having 2 edit copies of the page at the same time. Chances of a mistake are really high. Another potential option if the above is not feasible is to use 2 browsers to edit the 2 different pages.

ok, now back to trying to figure out a easy fix for the issue :)

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • how do I work around the form session bug?

This forum was archived on 2017-11-26.