X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=ledger.py;fp=ledger.py;h=46035bc3790ac42815fd1b9c2a1910cf574da07e;hp=a26ca0f345f5dfdaf02eb8cff45330991eb14d7d;hb=28bd91c52ce1eab2b26793097e0d9cabc3c33c64;hpb=0c688dfc7b5732676428187a09491c4f5c1028c1 diff --git a/ledger.py b/ledger.py index a26ca0f..46035bc 100755 --- a/ledger.py +++ b/ledger.py @@ -1248,7 +1248,7 @@ class LedgerHandler(PlomHandler): elif prefix + '/edit' == parsed_url.path: index = int(postvars['index'][0]) edit_mode = postvars['edit_mode'][0] - validate = submit_button in {'save', 'copy', 'check'} + validate = submit_button in {'update', 'add', 'copy', 'check'} starts_at = '?' if index == -1 else db.bookings[index].starts_at if 'textarea' == edit_mode: lines = [LedgerTextLine(line) for line in postvars['booking'][0].rstrip().split('\n')]