Bugzilla – Attachment 71067 Details for
Bug 19230
Warn when deleting a course in course reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19230: (follow-up) Preventing warn when deleting course
Bug-19230-follow-up-Preventing-warn-when-deleting-.patch (text/plain), 1.27 KB, created by
Jonathan Druart
on 2018-01-30 17:07:17 UTC
(
hide
)
Description:
Bug 19230: (follow-up) Preventing warn when deleting course
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-01-30 17:07:17 UTC
Size:
1.27 KB
patch
obsolete
>From be8995816f6ecd2d82cb508e9a34aff0cb0d9d2f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 30 Jan 2018 14:06:27 -0300 >Subject: [PATCH] Bug 19230: (follow-up) Preventing warn when deleting course > >Simplify 'unless' statement >--- > .../intranet-tmpl/prog/en/modules/course_reserves/course-details.tt | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >index bec2e9fad5..9912fc8f79 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >@@ -209,10 +209,7 @@ > }); > > $("#delete_course").click(function(){ >- [% SET count = course_reserves.size %] >- [% UNLESS count %] >- [% count = 0 %] >- [% END %] >+ [% SET count = course_reserves.size || 0 %] > [% IF count == 1 %] > return confirmDelete(_("Are you sure you want to delete this course? There is [% count %] attached item.") ); > [% ELSIF count > 1 %] >-- >2.11.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 19230
:
66678
|
67797
|
69946
|
69985
|
70780
|
70933
| 71067