wrong target focus in accruals.php fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 8 Jan 2021 09:41:06 +0000 (10:41 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 8 Jan 2021 09:41:06 +0000 (10:41 +0100)
gl/accruals.php

index 3fc2b4270236f5e0c791cd9ff53f53fbc08f8537..b37c413c30d5c48539c8438adbc90edfe0c8ba6a 100644 (file)
@@ -52,7 +52,7 @@ if (isset($_POST['go']) || isset($_POST['show']))
        elseif (input_num('amount', 0) == 0.0)
        {
                display_error(_("The amount can not be 0."));
-               set_focus('periods');
+               set_focus('amount');
                $input_error = 1;
        }
        elseif (input_num('periods', 0) < 1)