Bugzilla – Attachment 100998 Details for
Bug 24846
Add a tool to enable bulk edit of due dates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24846: Add new permission batch_extend_due_dates
Bug-24846-Add-new-permission-batchextendduedates.patch (text/plain), 3.02 KB, created by
Martin Renvoize (ashimema)
on 2020-03-19 08:50:40 UTC
(
hide
)
Description:
Bug 24846: Add new permission batch_extend_due_dates
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-03-19 08:50:40 UTC
Size:
3.02 KB
patch
obsolete
>From ea804e1818b974c23985e3edacc98838cb9fc5d5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 16 Mar 2020 11:45:15 +0100 >Subject: [PATCH] Bug 24846: Add new permission batch_extend_due_dates > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/atomicupdate/bug_24846.perl | 11 +++++++++++ > installer/data/mysql/userpermissions.sql | 1 + > .../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ > 3 files changed, 17 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_24846.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24846.perl b/installer/data/mysql/atomicupdate/bug_24846.perl >new file mode 100644 >index 0000000000..cdf4f7587e >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24846.perl >@@ -0,0 +1,11 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(qq{ >+ INSERT IGNORE permissions (module_bit, code, description) >+ VALUES >+ (13, 'batch_extend_due_dates', 'Perform batch extend due dates') >+ }); >+ >+ SetVersion($DBversion); >+ print "Upgrade to $DBversion done (Bug 24846 - Add a new permission for new tool batch extend due dates)\n"; >+} >diff --git a/installer/data/mysql/userpermissions.sql b/installer/data/mysql/userpermissions.sql >index a6bc545449..a0a4958494 100644 >--- a/installer/data/mysql/userpermissions.sql >+++ b/installer/data/mysql/userpermissions.sql >@@ -79,6 +79,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > (13, 'import_patrons', 'Import patron data'), > (13, 'edit_patrons', 'Perform batch modification of patrons'), > (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'), >+ (13, 'batch_extend_due_dates', 'Perform batch extend due dates'), > (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'), > (13, 'schedule_tasks', 'Schedule tasks to run'), > (13, 'items_batchmod', 'Perform batch modification of items'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index d431acdc3c..280054ddf5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -407,6 +407,11 @@ > Delete old borrowers and anonymize circulation history (deletes borrower reading history) > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'batch_extend_due_dates' -%] >+ <span class="sub_permission batch_extend_due_dates_subpermission"> >+ Perform batch extend due dates >+ </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- CASE 'edit_calendar' -%] > <span class="sub_permission edit_calendar_subpermission"> > Define days when the library is closed >-- >2.20.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 24846
:
100729
|
100730
|
100731
|
100749
|
100750
|
100752
|
100753
|
100754
|
100914
|
100915
|
100969
| 100998 |
100999
|
101000
|
101001