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

ez_is_field_empty does not work for a "date and time" field

    Details

      Description

      If you have an attribute of the "Date and time" datatype with an identifier "end_date", this check always returns "false".

      Steps to reproduce:

      1. Add a "date and time" attribute to your article class
      2. Create a new article, and leave the "date and time" empty
      3. Add {{ ez_is_field_empty( content, 'end_date' ) }} to your vendor/ezsystems/demobundle/EzSystems/DemoBundle/Resources/views/full/article.html.twig template, considering that "end_date" is the alias of your date time attribute
      4. Navigate to your article from the frontend (eZ Demo)

      It should return "1", but nothing is returned.
      Everything work correctly with the "date" attribute.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          2m 11s 1 ricardo.correia@ez.no 04/Nov/14 12:53 PM
          Confirmed Confirmed InputQ InputQ
          8m 54s 1 Paulo Lopes (Inactive) 04/Nov/14 1:02 PM
          Development Development Development Review Development Review
          2d 1h 50m 1 Gunnstein Lye 06/Nov/14 3:44 PM
          Development Review Development Review Development Review done Development Review done
          3d 20h 6m 1 Gunnstein Lye 10/Nov/14 11:51 AM
          Development Review done Development Review done Documentation Review done Documentation Review done
          57m 26s 1 Gunnstein Lye 10/Nov/14 12:48 PM
          QA QA InputQ InputQ
          19h 35m 1 pedro.resende@ez.no 11/Nov/14 1:31 PM
          InputQ InputQ Development Development
          3h 16m 2 Gunnstein Lye 11/Nov/14 3:56 PM
          Development Development Documentation Review done Documentation Review done
          15m 11s 1 Gunnstein Lye 11/Nov/14 4:11 PM
          Documentation Review done Documentation Review done QA QA
          7h 2m 2 pedro.resende@ez.no 11/Nov/14 6:06 PM
          QA QA Closed Closed
          1d 15h 42m 1 pedro.resende@ez.no 13/Nov/14 9:49 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 1 day, 7 hours, 45 minutes
                1d 7h 45m