FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug in ft_api_delete_unfinalized_submissions()
#1
Hi,

The ft_api_delete_unfinalized_submissions() uses curdate() instead of now() function to compare the submission time when the second parameter is false. The MySQL curdate() just returns a date e.g. D.M.YYYY without time information. However, the now() function returns the current date and time. So, the current implementation do not delete the unfinalized submissions older than 2 hours as stated in the documentation, but just those older than today. The correct way to comply with the documentation should be to use now() function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)