J3 Issue ?
avatar SniperSister
SniperSister
27 Jul 2020

Steps to reproduce the issue

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.

Expected result

Article is created

Actual result

Error is shown

Additional comments

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.

avatar SniperSister SniperSister - open - 27 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jul 2020
Labels Added: J3 Issue ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jul 2020
avatar brianteeman
brianteeman - comment - 28 Jul 2020

Are they in the same category?

avatar infograf768
infograf768 - comment - 28 Jul 2020

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.

avatar SharkyKZ
SharkyKZ - comment - 28 Jul 2020

Related #28968.

avatar infograf768
infograf768 - comment - 28 Jul 2020

@SharkyKZ
Indeed. That is what I meant by unwanted consequences.
Closing as already discussed.

avatar infograf768 infograf768 - change - 28 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-28 06:56:28
Closed_By infograf768
avatar infograf768 infograf768 - close - 28 Jul 2020

Add a Comment

Login with GitHub to post a comment