I get my node locked after the first saving of my cck node:
"This content has been modified by another user"

But loading the edit page again it is not locked. Anyway I am the only user in my dev system.

This happened using the dev version: 6.x-1.x-dev 2009-Feb-26
The same issue happened while using the ajaxsubmit module. As there seems to be a merging for both (into ajax-mod ?) I am posting here.

(With 6.x-1.12 2009-Jan-18 it seemed not to support ajax submit function. Is that true?)

Comments

brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford

With latest dev release are you still able to reproduce this problem?

brendoncrawford’s picture

Status: Active » Closed (won't fix)

I am not able to reproduce this. Please re-open this bug if you experience it again. Any detailed information surrounding the bug is also helpful.

Thanks,
brendon

Royce-1’s picture

Hi,

Great module! I have been having the same issue, I'm running the dev version 3/3/10. Saving new nodes works just fine, but when I click to edit a created node (with redirect disabled) and save it more than once, I get the old "This content has been modified by another user" and it doesn't save. But if I reload the edit page, then saving works. Is this intended? Thanks!

Royce-1’s picture

Status: Closed (won't fix) » Active

Trying to change this to active. I'm a drupal bug noobie.

Royce

cerup’s picture

This happen if the users clicks 'submit' more than once by accident.

This is very critical as it happens a lot for my users!

The submit button should be deactivated once hit the first time.

You can recreate this simply by pressing submit twice by any ajax form.

emosbaugh’s picture

i get the same. if i edit the node and click submit once it works. then after it updates if i click again i get the error message. i think the problem is that the #edit-changed field is not getting updated after the first submit so it enters into this in node.module

if (isset($node->nid) && (node_last_changed($node->nid) > $node->changed)) {
    form_set_error('changed', t('This content has been modified by another user, changes cannot be saved.'));
}
emosbaugh’s picture

Priority: Normal » Critical
mustanggb’s picture

To reproduce disable redirect and save a form twice

tmsimont’s picture

Check this out:
http://drupal.org/node/394694#comment-3749798

It's not related to the Ajax project directly, but a similar solution could be applied.

vishal.sirsodiya’s picture

Issue summary: View changes

Hi,

I am facing same problem in drupal 6. When I am clicking on submit button on node edit, my node are not saving and displaying below errors.

"This content has been modified by another user, changes cannot be saved.
The settings have not been saved because of the errors."