Fields and Category assignment #46964
Replies: 2 comments
-
|
So I just took a look at this and the "problem" is that the code is specifically written to include child categories. (does anyone know why - it's not something I see elsewhere in Joomla) The relevant code is joomla-cms/administrator/components/com_fields/src/Model/FieldsModel.php Lines 231 to 246 in b2004e7 When I remove that block of code I can successfully assign a field to
The problem is that this would be a b/c break so we cant just delete the block of code and would need to place it behind a param (include/exclude children) with the default being include and should this include/exclude child categories be per field or a global option for com_fields thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
#46837 @brianteeman Can you test? :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Steps to reproduce the issue
Create two categories
Parent
Parent->child
Create one field and assign it to the Parent Category
Expected result
Field is only available to articles in the parent category
Actual result
Field is available to articles in the parent and child category. There is no way to assign a field just to the parent category
System information (as much as possible)
Additional comments
Beta Was this translation helpful? Give feedback.
All reactions