You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a cell that contains a time entry from a database, this time entry is not removed if the user only removes the number with Backspace or Delete and saves. He/she instead has to type a 0 into the cell and save to effectively remove the entry from the database.
In technical terms, the newTimeEntries array that keeps track of changes in the frontend code, isn't updated in this case.
This only is a problem with entries from the database. The cell behavior for so far unsaved entries works as expected.
Steps to reproduce
Go to the report page to a week that already has entries from the database.
Click into a cell with entry and remove the number with Backspace or delete
Click "Save changes" - you should get the warning that you don't have any changes to save. That's the bug.
To reproduce the correct behavior when pressing 0:
Repeat steps 1 and 2 from above.
Type 0 in the cell
Click "Save changes"
Reload the page - the entry should be gone
To reproduce the correct behavior for unsaved entries:
Go to the report page
Click in an empty cell and enter a number
Remove the number again with Backspace or Delete
Click "Save changes" - you should get the warning that you don't have any changes to save.
Environment
develop branch
Expected behavior
if a time entry from the database in a cell is removed with Backspace or Delete, this should be recognized as a change and delete the entry from the database when pressing "Save changes"
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
The behaviour seems slightly different from what's described in the first scenario. When clicking "Save changes" in the 3rd step, I get the error dialogue box saying I have no changes to save.
Describe the bug
In a cell that contains a time entry from a database, this time entry is not removed if the user only removes the number with Backspace or Delete and saves. He/she instead has to type a 0 into the cell and save to effectively remove the entry from the database.
In technical terms, the
newTimeEntries
array that keeps track of changes in the frontend code, isn't updated in this case.This only is a problem with entries from the database. The cell behavior for so far unsaved entries works as expected.
Steps to reproduce
To reproduce the correct behavior when pressing 0:
To reproduce the correct behavior for unsaved entries:
Environment
develop branch
Expected behavior
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: