Bugzilla – Attachment 33904 Details for
Bug 10749
patron permissions typos
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10749: Fix typo in budget_add_del permission
Bug-10749-Fix-typo-in-budgetadddel-permission.patch (text/plain), 2.86 KB, created by
Jonathan Druart
on 2014-11-25 13:56:27 UTC
(
hide
)
Description:
Bug 10749: Fix typo in budget_add_del permission
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-11-25 13:56:27 UTC
Size:
2.86 KB
patch
obsolete
>From b5705612675c23044a4cbedf291459a0cc4be5cb Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 10 Nov 2014 20:53:20 +0100 >Subject: [PATCH] Bug 10749: Fix typo in budget_add_del permission > >Updates the en permission file and adds a database >update to fix the permisson. > >The update is done using the description, to not >untranslate non-English permission descriptions. > >To test: >- Run the database update on your existing installation > and check the typo is gone >- Run the web installer and check there are no errors > and permissions are loaded correctly (and without typos) > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Test plan works correctly. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > installer/data/mysql/en/mandatory/userpermissions.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 11 ++++++++++- > 2 files changed, 11 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/en/mandatory/userpermissions.sql b/installer/data/mysql/en/mandatory/userpermissions.sql >index 156d919..65c4bb8 100644 >--- a/installer/data/mysql/en/mandatory/userpermissions.sql >+++ b/installer/data/mysql/en/mandatory/userpermissions.sql >@@ -25,7 +25,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > (11, 'order_manage_all', 'Manage all orders and baskets, regardless of restrictions on them'), > (11, 'group_manage', 'Manage orders & basketgroups'), > (11, 'order_receive', 'Manage orders & basket'), >- (11, 'budget_add_del', 'Add and delete budgets (but cant modify budgets)'), >+ (11, 'budget_add_del', 'Add and delete budgets (but can''t modify budgets)'), > (11, 'budget_manage_all', 'Manage all budgets'), > (13, 'edit_news', 'Write news for the OPAC and staff interfaces'), > (13, 'label_creator', 'Create printable labels and barcodes from catalog and patron data'), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 8ad77c2..bd97f6a 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -9522,7 +9522,7 @@ if ( CheckVersion($DBversion) ) { > $DBversion = "3.17.00.057"; > if ( CheckVersion($DBversion) ) { > print "Upgrade to $DBversion done (Koha 3.18 beta)\n"; >- SetVersion($DBversion); >+ SetVersion ($DBversion); > } > > $DBversion = "3.17.00.058"; >@@ -9534,6 +9534,15 @@ if( CheckVersion($DBversion) ){ > SetVersion($DBversion); > } > >+$DBversion = "3.17.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q{ >+ UPDATE permissions SET description = "Add and delete budgets (but can't modifiy budgets)" WHERE description = "Add and delete budgets (but cant modify budgets)"; >+ }); >+ print "Upgrade to $DBversion done (Bug 10749: Fix typo in budget_add_del permission description)\n"; >+ SetVersion ($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10749
:
20923
|
33441
|
33754
| 33904