Problem/Motivation

Conflict should not remove the existing protection for overwriting a URL alias.

Steps to reproduce

Drupal 9.3.12
Conflict module 8.x-2.0-alpha2
Pathauto module 8.x-1.9

With Conflict module uninstalled:
  1. Edit node in two tabs
  2. Left side: uncheck "Generate automatic URL alias" and set a custom URL alias, save
  3. Right side: do the same

Actual result:

Error message

The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.

With Conflict module installed:
  1. Repeat steps 1-3

Expected result:
.
Similar to before, except Conflict module shows a warning and allows user to resolve the conflict.

Actual result:

Right side is saved, overwriting the left side. Not only is the Conflict protection missing, the "vanilla" Drupal protection is missing.

Comments

hugovk created an issue.

hugovk’s picture

Similarly, with a user who has permission to edit a content type.

With conflict module uninstalled:

1. Edit an unpublished node in two tabs
2. Left side: change the title and save
3. Right side: change the title, and set to published, and save

Actual result:

Look at the "Published" toggle -> it's still enabled

Error message

The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.

With Conflict module installed:

1. Repeat steps 1-3
4. "The content has either been modified by another user, or you have already submitted modifications. Manual merge of the conflicts is required." -> "Resolve conflicts"
5. Set title however you wish, flip the "Manual merge completed" toggle
6. Look at the "Published" toggle -> it's still enabled ✅
7. Save

Actual result
8. Look at the "Published" toggle -> it's not enabled ❌

Expected result
8. Look at the "Published" toggle -> it's still enabled ✅

(With an admin user, it publishes the node as expected, but with non-admin.)