home · contact · privacy
Various small fixes.
[misc] / ledger.py
index a26ca0f345f5dfdaf02eb8cff45330991eb14d7d..46035bc3790ac42815fd1b9c2a1910cf574da07e 100755 (executable)
--- 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')]