Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16885

Storing ID to edit/delete in the session can lead to wrong item affected

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.6.5, 4.7
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When deleting items the ID to delete is stored in the session. This can lead to the wrong item being deleted, when other items are opened in additional tabs.

      The same issue emerges when editing some items - information is changed on the wrong one.

      I've confirmed the 'delete' issue on dmaster for events, groups, tags, price sets...

      I've confirmed the 'edit' issue on dmaster for tags

      Steps to recreate the 'delete' error, using tag as an example:

      Add a tag 'Tag A'
      Add a tag 'Tag Z'

      Open the link to 'Delete' Tag A in a new tab/window
      Open the link to 'Delete' Tag Z in a new tab/window

      Confirm deletion of Tag A
      Notice that Tag Z has actually been deleted

      Steps to recreate the 'edit' error, using tags as an example:

      Add a tag 'Tag A'
      Add a tag 'Tag Z'

      Open the link to 'Edit' Tag A in a new tab/window
      Open the link to 'Edit' Tag Z in a new tab/window

      Rename 'Tag A' to 'Tag Foo', save and done
      Notice that Tag Z has actually been renamed

      Related issues
      CRM-15288

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                john John K.
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: