Bug 25120: Make accounting the default tab when opening the pref editor
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 11 Apr 2020 13:40:39 +0000 (13:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 15 Apr 2020 11:27:07 +0000 (12:27 +0100)
The default/active tab when opening the sys pref editor used
to be 'Acquisitions' as the first tab, but should now be the new
first 'Accounting'

To test:
- Go to Administration > System preferences
- Verify the Aquisition tab is second and preselected
- Apply patch
- Repeat
- Verify now Accounting is selected

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

admin/preferences.pl

index 9c785bd..3b1676e 100755 (executable)
@@ -309,7 +309,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
 
 my $op = $input->param( 'op' ) || '';
 my $tab = $input->param( 'tab' );
-$tab ||= 'acquisitions'; # Ideally this should be "local-use" but preferences.pl
+$tab ||= 'accounting'; # Ideally this should be "local-use" but preferences.pl
                          # does not presently support local use preferences
 
 my $highlighted;