Closed (fixed)
Project:
Content locking (anti-concurrent editing)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Apr 2012 at 00:19 UTC
Updated:
22 Apr 2016 at 16:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jaydub commentedI can't get the same error but perhaps if you give a bit more detail.
So steps are:
* User A with permission to lock edits node
* User B with permission to lock(?) views locked node (node/XX) OR tries to edit locked node (node/XXX/edit)??
* User A clicks cancel to get out of edit mode
* User A sees the error message? On the node page (node/XX) after clicking cancel and being redirected?
Comment #2
alfaguru commentedIt seems that this happens whenever a node was locked when a form was created but the lock has gone by the time it is submitted. I managed to reproduce this by opening the same edit form twice in different windows within a browser session and then submitting both of them. On the second this error appears.
Looking at the code, it doesn't cope with the the case where content_lock_fetch_lock() returns an empty value. It would seem sensible that it should.
Comment #3
drupalninja99 commentedI am getting this issue too.
Comment #4
goldAnd now the patch...
This takes the result of loading the lock and loads either $lock->ajax_key or FALSE into a variable to pass into the $settings array.
Comment #5
goldI've just checked this using drush make with the following build.make snippet;
The result was successful. Drush make reports;
Running the above steps in the description does not return any notices now.
I'm not the appropriate one to test this though. Could someone else please test and update the Status.
Comment #6
goldHmm... Have spotted a second this like this. Will roll it into this patch soon.
Comment #7
goldAdding to the fix in #4 to also include one from the content_lock_release_own_item() function. Tidied up a drupal_set_message() that is never reached also.
Comment #7.0
goldUpdating with a proper issue summary template
Comment #8
jastraat commentedThis still applied to the current version, and it prevents the ajax error.
Comment #9
pandaski commentedComment #10
pandaski commentedComment #12
pandaski commentedThanks guys, will be in next release very soon.
Comment #14
drummCorrecting issue status, see #2698635: Issue statuses changing by themselves?.