Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-6056

Taxonomy Entry Assignment Field: Incorrect isEmptyValue implementation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Medium Medium
    • Customer request, 4.5.2
    • 4.4.3, 4.4.5
    • None
    • Yes

    Description

      1. Create a new content type with a single text field.
      2. Create a new content (name: "A") of the new content type.
      3. Add a new taxonomy entry assignment field to the new content type using the "Tags" taxonomy.
      4. Check the Solr Document of content "A". The new field does not exist yet.
      5. Run ibexa:reindex --content-ids=<content id of "A">.
      6. Check the Solr Document of content "A". It now has a tags_is_empty_b: true field.
      7. Edit the content "A" without changing anything and publish the new version.
      8. 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.
      **

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.pawlik@ibexa.co Paweł Pawlik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: