We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55890c commit a65f87fCopy full SHA for a65f87f
administrator/components/com_tags/src/Table/TagTable.php
@@ -191,7 +191,10 @@ public function store($updateNulls = true)
191
// Verify that the alias is unique
192
$table = new static($this->getDbo());
193
194
- if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) {
+ if (
195
+ $table->load(array('alias' => $this->alias, 'parent_id' => (int) $this->parent_id))
196
+ && ($table->id != $this->id || $this->id == 0)
197
+ ) {
198
// Is the existing tag trashed?
199
$this->setError(Text::_('COM_TAGS_ERROR_UNIQUE_ALIAS'));
200
0 commit comments