]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Einkauf/Verkauf: keine Validierung bei Update-Button
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 17 Jul 2019 13:48:13 +0000 (15:48 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 17 Jul 2019 13:48:13 +0000 (15:48 +0200)
Andernfalls wird z.B. erzwungen, dass die Vorgangsbezeichnung
eingegeben ist, bevor der Update-Button betätigt wird. Das betrifft
auch den Kundenwechsel, der ein automatisches Update triggert, was
wiederum die Validierung triggert.

Wichtig bzgl. Validierung ist letztlich nur, dass die Werte zum
Zeitpunkt des Speicherns gültig sind, egal ob explizites
(»Speicher«, »Als neu speicher«) oder implizites Speichern (»Drucken«,
»E-Mail« etc.).

bin/mozilla/do.pl
bin/mozilla/ir.pl
bin/mozilla/is.pl
bin/mozilla/oe.pl

index ff902172d09a2bac6f49ddd41148ab2b8e6993d0..c21cff9e68c89258c8eff7441384d159d6400627 100644 (file)
@@ -1,3 +1,4 @@
+
 #=====================================================================
 # LX-Office ERP
 # Copyright (C) 2004
@@ -247,7 +248,6 @@ sub setup_do_action_bar {
         [ t8('Update'),
           submit    => [ '#form', { action => "update" } ],
           id        => 'update_button',
-          checks    => [ 'kivi.validate_form' ],
           accesskey => 'enter',
         ],
 
index c550d5d649581b3258514dfccd7b456e40310c48..f41e8087a832a82c2b0ebb68b27d4ed9c559762d 100644 (file)
@@ -262,7 +262,6 @@ sub setup_ir_action_bar {
       action => [
         t8('Update'),
         submit    => [ '#form', { action => "update" } ],
-        checks    => [ 'kivi.validate_form' ],
         id        => 'update_button',
         accesskey => 'enter',
         disabled  => !$may_edit_create ? t8('You must not change this invoice.') : undef,
index 2c50d7ee9feff688191a9fc8a5b03ebfba07bc70..9b8fc2a1285e17fc82d3630655dfa8ed67ee0b36 100644 (file)
@@ -296,7 +296,6 @@ sub setup_is_action_bar {
                    : $form->{locked}   ? t8('The billing period has already been locked.')
                    :                     undef,
         id        => 'update_button',
-        checks    => [ 'kivi.validate_form' ],
         accesskey => 'enter',
       ],
 
index b5f3eb6b6e28b0f608197142d1ef439ba03e4e77..ad0cbf3483f1beeb39fce39747b5be3eea8544d9 100644 (file)
@@ -331,7 +331,6 @@ sub setup_oe_action_bar {
         t8('Update'),
         submit    => [ '#form', { action => "update" } ],
         id        => 'update_button',
-        checks   => [ 'kivi.validate_form' ],
         accesskey => 'enter',
       ],