J3 Issue ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
6 Apr 2019

Pull Request for Issue #24361 .

Summary of Changes

we don't need to traverse the tree

Testing Instructions

make a category tree like this
A
-> B
-> -> C
-> -> -> D

create an article field and assign to previous categories (a,b,c,d)
create an article in the D category

visit that artilce you'll see 4 times the same field

see #24361 for more details

Expected result

to see the field once

Actual result

Note

same happens on administrator side if you filter for category before patch
Screenshot from 2019-04-06 09-22-08

avatar alikon alikon - open - 6 Apr 2019
avatar alikon alikon - change - 6 Apr 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2019
Category Administration com_fields
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Apr 2019

@artur-stepien please test.

avatar Bakual
Bakual - comment - 6 Apr 2019

But what happens if you only assign the field to category A? It should imho be available in all subcategories as well (at least code indicates that is intended behavior).
If you change that, it is a change in expected behavior which would be unacceptable in J3.

The thing is, you shouldn't need to assign the field to category B, C and D as they inherit the field from A. So it's kind of a user failure. Neverthlesss it shouldn't show them multiple times, thus a DISTINCT in the query would be the correct solution.

avatar alikon
alikon - comment - 6 Apr 2019

a field should be available in all subcategories .. at least code indicates that is intended behavior

ummm, not so much expected behaviour for me , at least
but i can be wrong

avatar Bakual
Bakual - comment - 6 Apr 2019

Afaik it was like this since the feature was introduced.
@laoneo Correct me if i'm wrong.

avatar alikon
alikon - comment - 6 Apr 2019

so let's go with DISTINCT #24516 😄

avatar alikon alikon - change - 6 Apr 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-04-06 07:52:41
Closed_By alikon
Labels Added: J3 Issue ?
avatar alikon alikon - close - 6 Apr 2019
avatar laoneo
laoneo - comment - 8 Apr 2019

@Bakual yes you are right. Both sides have their advantages.

Add a Comment

Login with GitHub to post a comment