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

Issues with tags that have spaces

Open GabyE4U opened this issue 3 years ago • 2 comments

Steps to reproduce the issue

  1. Create a tag with a space in the name.
  2. Create subtags of this tag, with or without spaces. This doesn't matter.
  3. It should look something like this:

Tag tree

  1. Create an article in the administrator (in com_content).
  2. Type the full name of the parent tag in the Tags field to search for the sub-tags it has.

Expected result

It should show the parent tag AND the child tags.

Actual result

  1. When you first start typing, it shows all the tags like it's supposed to. First result

  2. Once you type out the full parent tag name and the tag list refreshes, only the parent tag shows up and the child tags disappear. Second result

System information (as much as possible)

This happens on any system, but here's my browser specs:

Chrome version 104.0.5112.80

Additional comments

This issue has been reported by one of our customers. She has experienced this since at least May 2022 (so for several Joomla 3 versions), but it could've existed earlier. I was able to reproduce her issue on several different PCs and browsers.

GabyE4U avatar Aug 05 '22 07:08 GabyE4U

Once you type out the full parent tag name and the tag list refreshes, only the parent tag shows up and the child tags disappear.

I think it is expected, because search work for a tag title, not for any parent, but for the tag name itself. We display the parents in drop down just for "visual siplicity", so you know wich exatly tag tree you selected.

Fedik avatar Aug 05 '22 08:08 Fedik

@GabyEdit4U Which behaviour would you expect here? I agree with @Fedik that this is "normal" behaviour.

chmst avatar Aug 09 '22 10:08 chmst

@Fedik @chmst Sorry for my late reply, I was unavailable due to vacation last week.

In point 1 of the first result you can see that when you start with typing the parent tag (in this case "Test"), it will actually show all the results that have "Test Tag" as the parent tag. Only when you type in the space and the list refreshes (or type out the full Test Tag name for that matter as described in point 2 for simplicity), is when the results disappear.

The behaviour is currently irregular as you are able to see the child tags for parent tag "Test Tag" as long as you only type the first portion of the tag.

GabyE4U avatar Aug 15 '22 07:08 GabyE4U

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

As this issue doesn't relate to Joomla 4 it will now been closed.

If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4. cc @zero-24

brianteeman avatar Aug 26 '22 22:08 brianteeman

@brianteeman this bug is still present in J4.2.2: in article editing i can't assign tags with spaces from several J4 versions. F.I: RED APPLE can't be added to article.

morphinestyle avatar Oct 04 '22 17:10 morphinestyle

I cannot replicate in J4 - see example, all tags are added in editing an article. grafik As @brianteeman says .. open a new issue for J4.

chmst avatar Oct 05 '22 03:10 chmst

I can't replicate on a new website... i need to make an accurate test excluding some 3rd part extensions. I tried with/without multi language, with without spaces, nested and not nested... I can't replicate it.

How can i get more infos when i SAVE the ARTICLE and lost the tags? Debug? Set to show all errors?

morphinestyle avatar Oct 06 '22 08:10 morphinestyle

However i'm experiencing the issue is slightly different, not related to space between tags: I see 5 tags on frontend, but on my article editing i see only 3 tags!

morphinestyle avatar Oct 06 '22 09:10 morphinestyle

Yes, this is the issue: #37927 @chmst @brianteeman

morphinestyle avatar Oct 06 '22 09:10 morphinestyle

I am clossing it, see comment https://github.com/joomla/joomla-cms/issues/38400#issuecomment-1229014326 Also because it is not an issue for j4

Fedik avatar Oct 06 '22 12:10 Fedik