Configure a multilingual site and create an article with "testarticle" as alias. Assign it to language 1. Now create a second article, assign it to language 2 and use the same alias.
Article is created
Error is shown
The exact same behavior works fine for menu items, so the CMS is behaving inconsistently here – that's why I would consider this as a bug.
Labels |
Added:
J3 Issue
?
|
The code prevents indeed to save articles with same alias in same category, whatever the language.
if ($table->load(array('alias' => $this->alias, 'catid' => $this->catid)) && ($table->id != $this->id || $this->id == 0))
{
$this->setError(\JText::_('JLIB_DATABASE_ERROR_ARTICLE_UNIQUE_ALIAS'));
return false;
}
It would be interesting to allow saving, when multilingual is on AND the category is set to ALL languages, articles tagged to different languages with same alias. Will look at that. We must be sure there will not be any unwanted consequences.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-28 06:56:28 |
Closed_By | ⇒ | infograf768 |
Are they in the same category?