Create category Cat1
Create Sub-Category of Cat1, Cat2
Create Article TestArticle, place in category Cat2
Create Field TestField assign to Cat1
Open Article TestArticle
TestField should be available (inherited from Cat1)
TestField is not available
joomla_4.0.0-beta4-dev-Development-Full-Package - nightly : 2020-08-31
Result after fix below:
TestField is available, fields are inherited by sub-categories correctly
File : administrator\components\com_fields\src\Model\FieldsModel.php
Line : approx 242 in function getListQuery()
change
$db->quoteName('fc.category_id') . ' IN
(' . implode(',', $query->bindArray(array_values($categories), ParameterType::INTEGER)) . ')' .
To
$db->quoteName('fc.category_id') . ' IN (' . implode(',', $query->bindArray(array_values($categories), ParameterType::INTEGER)) . ')' .
I would have opened a pull request for this but found github too complicated.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-03 10:15:14 |
Closed_By | ⇒ | Quy |
Issue can be closed as there is #30557