Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Entries with a duplicate slug don't auto-increment; instead returns error 'Slug already exists.' #2387

Closed
benfurfie opened this issue Apr 26, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@benfurfie
Copy link

commented Apr 26, 2019

Describe the bug
In a collection, when adding an entry with the same title, the slug will result in a conflict. In theory, the DuplicateEntryController should be triggered in this instance to auto increment the entry, but it isn't happening. Instead, you are presented with an error that the 'Slug already exists'.

To Reproduce
Steps to reproduce the behavior:

  1. Create a collection.
  2. Create an entry and save.
  3. Create another entry with the same title and attempt to save.
  4. You will be presented with the error.

Expected behavior
As per the defined behaviour of the DuplicateEntryController, when you attempt step 3, Statamic should check if the slug exists, and if it does, increment it.

Screenshots
statamic-duplicate-entry-bug

Environment details (please complete the following information):

  • Statamic Version: 2.11.10

  • Fresh Install or Upgrade: Fresh

  • OS: [e.g. macOS 10.12.6, Ubuntu 16.04] macOS 10.14.1

  • Browser: All

  • Web Server: Valet

  • PHP Version: 7.2

  • Addons installed:

  • AardvarkSeo

  • AllTheThings

  • CacheCrashie

  • History

  • Impersonator

  • Mix

  • PowerTools

  • Spock

  • Svg

  • Tel

Additional context
Add any other context about the problem here.
https://discordapp.com/channels/489818810157891584/489831949196591105/571340790433972251

@benfurfie benfurfie changed the title Entries with a duplicate slug don't auto-increment; instead returns error 'Slug already exists.' [BUG] Entries with a duplicate slug don't auto-increment; instead returns error 'Slug already exists.' Apr 26, 2019

@jackmcdade jackmcdade closed this Jun 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.