Bugzilla – Attachment 170219 Details for
Bug 37211
All notes in the patron Transactions table should be editable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37211: Add new subpermission in updatecharge 'edit_notes'
Bug-37211-Add-new-subpermission-in-updatecharge-ed.patch (text/plain), 2.97 KB, created by
Roman Dolny
on 2024-08-09 20:04:28 UTC
(
hide
)
Description:
Bug 37211: Add new subpermission in updatecharge 'edit_notes'
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2024-08-09 20:04:28 UTC
Size:
2.97 KB
patch
obsolete
>From 4fa2facc62d2bf09f486e5cf5b925d84bbadab91 Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Thu, 27 Jun 2024 18:53:09 +0000 >Subject: [PATCH] Bug 37211: Add new subpermission in updatecharge 'edit_notes' > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../data/mysql/atomicupdate/bug_37211.pl | 23 +++++++++++++++++++ > .../data/mysql/mandatory/userpermissions.sql | 1 + > .../prog/en/includes/permissions.inc | 5 ++++ > 3 files changed, 29 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_37211.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_37211.pl b/installer/data/mysql/atomicupdate/bug_37211.pl >new file mode 100755 >index 0000000000..cc66438cae >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_37211.pl >@@ -0,0 +1,23 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "37211", >+ description => "Add permission updatecharges:edit_notes", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{ >+ INSERT INTO permissions (module_bit, code, description) >+ VALUES (10, 'edit_notes', 'Edit accountline notes') >+ } >+ ); >+ >+ # permissions >+ say $out "Added new permission 'updatecharges:edit_notes'"; >+ >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/userpermissions.sql b/installer/data/mysql/mandatory/userpermissions.sql >index 83808b97a2..0343cf4732 100644 >--- a/installer/data/mysql/mandatory/userpermissions.sql >+++ b/installer/data/mysql/mandatory/userpermissions.sql >@@ -71,6 +71,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > (10, 'manual_credit', 'Add manual credits to a patron account'), > (10, 'manual_invoice', 'Add manual invoices to a patron account'), > (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'), >+ (10, 'edit_notes', 'Edit accountline notes'), > (11, 'currencies_manage', 'Manage currencies and exchange rates'), > (11, 'vendors_manage', 'Manage vendors'), > (11, 'contracts_manage', 'Manage contracts'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index f5396703e7..243daa7e3e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -442,6 +442,11 @@ > Create purchase suggestions > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'edit_notes' -%] >+ <span class="sub_permission edit_notes_subpermission"> >+ Edit accountline notes >+ </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- CASE 'suggestions_manage' -%] > <span class="sub_permission suggestions_manage_subpermission"> > Edit purchase suggestions >-- >2.39.2
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 37211
:
168211
|
168212
|
170002
|
170003
|
170218
| 170219