Details
-
Bug
-
Resolution: Invalid
-
Medium
-
4.4.3, 4.4.5
-
None
-
Yes
Description
- Create a new content type with a single text field.
- Create a new content (name: "A") of the new content type.
- Add a new taxonomy entry assignment field to the new content type using the "Tags" taxonomy.
- Check the Solr Document of content "A". The new field does not exist yet.
- Run ibexa:reindex --content-ids=<content id of "A">.
- Check the Solr Document of content "A". It now has a tags_is_empty_b: true field.
- Edit the content "A" without changing anything and publish the new version.
- Check the Solr Document of content "A". The value of tags_is_empty_b is now false, even though the value of …_tags_count_i is 0.
Note
The reason for this problem is probably the implementation of \Ibexa\Taxonomy\FieldType\TaxonomyEntryAssignment\Type::isEmptyValue() which checks if \Ibexa\Taxonomy\FieldType\TaxonomyEntryAssignment\Value::$taxonomy is null. In the steps above, it is null after the Solr reindex, but got the correct tags value after editing the content.
**