timetracker icon indicating copy to clipboard operation
timetracker copied to clipboard

Uncaught db error if task description is too long

Open dalers opened this issue 1 year ago • 0 comments

Entering 292 characters for a task description results in error message "MDB2 Error: unknown error" after clicking Save. If the text is only 184 characters is it saved correctly.

The cause seems obvious since the task description field in the tt_tasks table is defined as varchar(255), but it would be nice addition to display a helpful message instead (also adds confidence to know nothing really bad happened).

Time Tracker version: 1.22.18.5805 PHP version: 8.0.28 MariaDb version: 10.5.20 Apache version: 2.4.56

Thanks for a great app, I've been using it daily since August 2015! :-)

dalers avatar Jun 27 '23 16:06 dalers