heikkilevanto / beertracker

Simple script to track the beers I drink
GNU General Public License v2.0
2 stars 1 forks source link

Edit-Record combo does not work #305

Closed heikkilevanto closed 3 months ago

heikkilevanto commented 3 months ago

If you start to edit a record just to get the default values right, and then click Record to insert a new record at the right position, it still updates the record you started with.

heikkilevanto commented 3 months ago

One way would be to do this on the browser side: The Record button could always clear the edit field.

But it would be more proper to do on the server side. Either with more logic in the saving loop, or the same way as above, b y clearing the $edit variable in case of 'Record'