Skip to content
Snippets Groups Projects
  1. Sep 21, 2018
  2. Sep 20, 2018
    • Alexandre Kühn's avatar
      [FIX] mail: add new note without date from activity menu · e962f2bb
      Alexandre Kühn authored
      Before this commit, it was not possible to add a note
      from the activity menu when no datetime has been selected
      from the datepicker.
      
      This is due to the server-side code that requires a deadline
      date to be set, otherwise no note is created. Even though
      the placeholder of the datetime tells 'Today', no datetime
      was provided to the server, thus the problem mentionned above.
      
      This commit fixes the issue by ensuring that a deadline date
      is always provided to the server from the `/note/new` route.
      In particular, if no datetime has been selected, it still
      displays 'Today' and sets the current datetime before the
      RPC.
      
      Task-ID 1875668
      e962f2bb
    • Alexandre Kühn's avatar
      [FIX] mail: mark document thread preview as read · 3457e037
      Alexandre Kühn authored
      Before this commit, it was not possible to mark a document
      thread preview as read from the messaging menu.
      
      This issue comes from the fact that document message previews
      are built from messages in the Inbox. The computation of
      the unread counter is correct for the preview, but not for
      the associated document thread object which has a counter of 0.
      Since it is only possible to mark as read when the counter is
      strictly greater than 0, the 'mark as read' did not have any
      impact.
      
      This commit fixes this issue by ensuring that the unread counter
      of a document thread matches the number of needaction messages it
      contains.
      
      Task-ID 1875668
      3457e037
Loading