joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[4.2] The alias is already being used - updates

Open brianteeman opened this issue 3 years ago • 14 comments

pr for #37013

create a menu item called test Try to create a second menu item also called test

Before

image

After

It only says trashed if it is trashed and the link opens the existing menu item image

image

Plus

Also updates com_content, com_categories, com_newsfeeds by splitting the message into two (one if the item is trashed). These are simpler changes as they dont have item names or links

Also updates com_finder filters to use a correct language string. Its not an article and it cant be trashed ;)

com_banners has not been updated because there is an existing bug in that #37031

brianteeman avatar Feb 12 '22 19:02 brianteeman

You have to use a new language string else we get a fatal error without of sync languages

HLeithner avatar Feb 12 '22 20:02 HLeithner

You have to use a new language string else we get a fatal error without of sync languages

no you don't. Did you actually test it? If you did and you got a fatal error please post the stack trace.

brianteeman avatar Feb 12 '22 20:02 brianteeman

Patch activated: The patch could not be applied because it conflicts with a previously applied patch: administrator/language/en-GB/lib_joomla.ini (4.1.0-rc5-dev)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37017.

ChristineWk avatar Feb 12 '22 21:02 ChristineWk

I assume thats with patchtester? You cannot apply a patch on to an existing one. You need to rest first.

brianteeman avatar Feb 12 '22 21:02 brianteeman

Of course have fetched before. And now resetted. Will try again.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37017.

ChristineWk avatar Feb 12 '22 21:02 ChristineWk

I have tested this item :white_check_mark: successfully on 834c85c06c55854aa078f1aac9e8853abc48b5bc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37017.

ChristineWk avatar Feb 12 '22 21:02 ChristineWk

Result:screen shot 2022-02-12 at 21 37 28


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37017.

ChristineWk avatar Feb 12 '22 21:02 ChristineWk

@brianteeman I see a chance to improve this message (as i have monochrome in backend I tried to cklick on all strong parts of the text).

grafik

What do you think about grafik

where the string trashed is set only if the item is trashed?

chmst avatar Feb 13 '22 11:02 chmst

@chmst oh there are lots of possibilities for improvement. My main concern at this moment in time is if the code is correct.

brianteeman avatar Feb 13 '22 11:02 brianteeman

@chmst unless I am very much mistaken the change to have two strings - one for trashed and one for regular items - is very easy. It was just lazy coding before to have that language string.

Once @HLeithner can confirm that he was wrong I will continue to work on this.

brianteeman avatar Feb 13 '22 13:02 brianteeman

@brianteeman yes, otherwise it would be tricky. If the user has a link, he can see that the item ist trashed, so maybe it is not necessary to mention it at all

chmst avatar Feb 13 '22 13:02 chmst

@chmst updated the PR so that the message is different if the duplicate is trashed or not

brianteeman avatar Feb 13 '22 17:02 brianteeman

Updated as requested by @roland-d

brianteeman avatar Jun 17 '22 21:06 brianteeman

This pull requests has been automatically converted to the PSR-12 coding standard.

joomla-bot avatar Jun 27 '22 21:06 joomla-bot

@roland-d are you planning to include this PR into 4.2? Not sure if language files are updated on minor releases.

obuisard avatar Oct 11 '22 16:10 obuisard

Not sure if language files are updated on minor releases.

That should not be a blocker for things merged into 4.2 :)

zero-24 avatar Oct 11 '22 16:10 zero-24

Is this ever going to be merged?

brianteeman avatar Oct 15 '22 11:10 brianteeman

Thanks

roland-d avatar Oct 15 '22 13:10 roland-d

thanks

brianteeman avatar Oct 15 '22 14:10 brianteeman