DateTime not changed when time is none

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    DateTime not changed when time is none

    Example: Task dateEnd

    In interface field contain two input fields: date, time

    When time changed to none isAttributeChanged bot fired and dateEnd contain old time part.

    Sugestion: remove point 'none' and make time part mandatory with default 00:00
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Suggestion is bad.

    How you change the time?
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • dimyy
      Active Community Member
      • Jun 2018
      • 569

      #3
      Time changed by drop down list. Without point "none". What this "none" mean? Separate time field in database not exist. DateTime always contain time part.

      When I change time to none dateEnd de facto changed, but isAttributeChanged not fired. Solution withou any additional modifications: only remove point "none" from choice list.

      What is the difference between "none" and "00:00"?
      Attached Files
      Last edited by dimyy; 08-23-2018, 08:50 AM.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        If you select None, dateEndDate field is set
        If you select any time from the list, dateEndDate field is null

        Comment

        Working...