Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Sluggable
-
Labels:None
Description
I want to create a non-unique slug of a title field from my table.
But I've found that when I change unique from 'true' to 'false' the slugs were not created or updated
In lib\Doctrine\Template\Listener\Sluggable.php inside preUpdate() function the first if() statement disables the unique (false) option.
I would just like to post an update after I've been able to test:
The only functionality that i found actually broken was updating a slug with unique set to false.
The reason was the wrapped if.
If you set unique to false, slugs will still fail to update as canUpdate must also be set to true.
The patch, so far as I can determine, does correct the underlying issue if a slug failing to update when unique is false and canUpdate is true.