Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19120

5.x expose isEmptyValue() in API for template needs

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.2-alpha1
    • 2012.1, 4.6.0, 5.0, 5.1
    • Database related, Misc
    • None

    Description

      It would be good if all datatypes supported in s similar fashion the concept of "not having content"

      Currently some do, some others do not at all, some have buggy/incomplete support.

      This topic related to theobjecAttributeHasContent method implementation in different datatypes but also to serialization/deserialization via tostring/fromstring and via package import, but also to content editing via the gui.

      Example problems:

      • ezurl: fromstring() does not clear an existing url from an existing attribute (incomplete support)
      • ezboolean: actually does not support being empty, while there is nothing preventing it (except people confusing null and false)
      • ezfloat: supports being empty, but when editing a float attribute via gui, it gets filled with 0.00 if rthe form field is left empty

      Attachments

        Activity

          People

            Unassigned Unassigned
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 45 minutes
                7h 45m