Merge 3b17c4478e
into 45c4a4aadf
This commit is contained in:
commit
287dd3219e
|
@ -88,7 +88,7 @@ class BlogTag extends DataObject implements CategorisationObject
|
||||||
// Check for duplicate tags
|
// Check for duplicate tags
|
||||||
$blog = $this->Blog();
|
$blog = $this->Blog();
|
||||||
if($blog && $blog->exists()) {
|
if($blog && $blog->exists()) {
|
||||||
$existing = $blog->Tags()->filter('Title', $this->Title);
|
$existing = $blog->Tags()->filter('URLSegment', $this->URLSegment);
|
||||||
if($this->ID) {
|
if($this->ID) {
|
||||||
$existing = $existing->exclude('ID', $this->ID);
|
$existing = $existing->exclude('ID', $this->ID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue