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 logged work - 04/Nov/14 3:00 PM - edited
          • Time Spent:
            3 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 hour [ 3600 ] 3 hours [ 10800 ]
          Worklog Id 51549 [ 51549 ]
          Gunnstein Lye logged work - 05/Nov/14 1:30 PM
          • Time Spent:
            2 hours
             

            .

          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 ]
          Hide
          Gunnstein Lye added a comment - - edited

          It seems that the way to fix this in 5.2 is to install these three 5.3 fixes:
          https://jira.ez.no/browse/EZP-6959
          https://jira.ez.no/browse/EZP-23019
          https://jira.ez.no/browse/EZP-23527

          Edit: Backporting these 3 to 5.2 is a major change, so I'll find another solution instead.

          Show
          Gunnstein Lye added a comment - - edited It seems that the way to fix this in 5.2 is to install these three 5.3 fixes: https://jira.ez.no/browse/EZP-6959 https://jira.ez.no/browse/EZP-23019 https://jira.ez.no/browse/EZP-23527 Edit: Backporting these 3 to 5.2 is a major change, so I'll find another solution instead.
          Gunnstein Lye made changes -
          Time Spent 3 hours [ 10800 ] 5 hours [ 18000 ]
          Worklog Id 51560 [ 51560 ]
          Gunnstein Lye logged work - 06/Nov/14 1:00 PM
          • Time Spent:
            5 hours
             

            .

          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 logged work - 07/Nov/14 5:19 PM
          • Time Spent:
            4 hours, 30 minutes
             

            .

          Gunnstein Lye made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Gunnstein Lye logged work - 10/Nov/14 12:00 PM
          • Time Spent:
            30 minutes
             

            .

          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
          Gunnstein Lye logged work - 11/Nov/14 10:30 AM
          • Time Spent:
            30 minutes
             

            .

          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 logged work - 11/Nov/14 4:00 PM
          • Time Spent:
            15 minutes
             
            <No comment>
          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 ]
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A on eZ Publish 5.2
          On eZ Publish 5.1 and 5.0 sanity tests have been done

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A on eZ Publish 5.2 On eZ Publish 5.1 and 5.0 sanity tests have been done
          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 ]
          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