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

          Ricardo Correia (Inactive) created issue -
          Ricardo Correia (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Paulo Lopes (Inactive) made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Gunnstein Lye made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Gunnstein Lye made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 1 hour [ 3600 ]
          Worklog Id 51549 [ 51549 ]
          Gunnstein Lye made changes -
          Time Spent 1 hour [ 3600 ] 3 hours [ 10800 ]
          Worklog Id 51549 [ 51549 ]
          Gunnstein Lye made changes -
          Link This issue relates to EZP-6959 [ EZP-6959 ]
          Gunnstein Lye made changes -
          Link This issue relates to EZP-23019 [ EZP-23019 ]
          Gunnstein Lye made changes -
          Link This issue relates to EZP-23527 [ EZP-23527 ]
          Gunnstein Lye made changes -
          Time Spent 3 hours [ 10800 ] 5 hours [ 18000 ]
          Worklog Id 51560 [ 51560 ]
          Gunnstein Lye made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Gunnstein Lye made changes -
          Time Spent 5 hours [ 18000 ] 1 day, 2 hours [ 36000 ]
          Worklog Id 51588 [ 51588 ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 2 hours [ 36000 ] 1 day, 6 hours, 30 minutes [ 52200 ]
          Worklog Id 51594 [ 51594 ]
          Gunnstein Lye made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 6 hours, 30 minutes [ 52200 ] 1 day, 7 hours [ 54000 ]
          Worklog Id 51614 [ 51614 ]
          Gunnstein Lye made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Pedro Resende (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
          Pedro Resende (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Gunnstein Lye made changes -
          Fix Version/s 5.0 Maintenance [ 11287 ]
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Gunnstein Lye made changes -
          Affects Version/s 5.1 [ 11280 ]
          Affects Version/s 5.0 [ 10300 ]
          Pedro Resende (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Pedro Resende (Inactive) made changes -
          Rank Ranked higher
          Pedro Resende (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Pedro Resende (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Pedro Resende [ pedro.resende@ez.no ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 7 hours [ 54000 ] 1 day, 7 hours, 30 minutes [ 55800 ]
          Worklog Id 51644 [ 51644 ]
          Gunnstein Lye made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Gunnstein Lye made changes -
          Attachment EZP-20724-5.0.diff [ 18917 ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 7 hours, 30 minutes [ 55800 ] 1 day, 7 hours, 45 minutes [ 56700 ]
          Worklog Id 51654 [ 51654 ]
          Gunnstein Lye made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Pedro Resende (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Pedro Resende (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
          Pedro Resende (Inactive) made changes -
          Assignee Pedro Resende [ pedro.resende@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 65038 ] EZ* Development Workflow [ 85479 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 85479 ] EZEE Development Workflow [ 124315 ]

            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