Bugzilla – Attachment 177249 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), 3.04 KB, created by
Martin Renvoize (ashimema)
on 2025-01-28 10:40:46 UTC
(
hide
)
Description:
Bug 37211: Add new subpermission in updatecharge 'edit_notes'
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-01-28 10:40:46 UTC
Size:
3.04 KB
patch
obsolete
>From b3088b1bd4aaef8f16fdb4c9b113bb2625947a6e 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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 00000000000..cc66438cae8 >--- /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 1d8b7d034f2..ac6c0b299bf 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 9d8cb5b9102..3dbff87a003 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.48.1
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
|
177244
|
177245
|
177248
| 177249 |
177250
|
177251
|
177252
|
177261