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 73fa007 commit af5af66Copy full SHA for af5af66
libraries/src/Table/ContentType.php
@@ -69,8 +69,10 @@ public function store($updateNulls = false)
69
// Verify that the alias is unique
70
$table = Table::getInstance('Contenttype', 'JTable', array('dbo' => $this->getDbo()));
71
72
- if ($table->load(array('type_alias' => $this->type_alias)) && ($table->type_id != $this->type_id || $this->type_id == 0))
73
- {
+ if (
+ $table->load(array('alias' => $this->alias, 'parent_id' => (int) $this->parent_id))
74
+ && ($table->id != $this->id || $this->id == 0)
75
+ ) {
76
$this->setError(\JText::_('COM_TAGS_ERROR_UNIQUE_ALIAS'));
77
78
return false;
0 commit comments