Bugzilla – Attachment 71526 Details for
Bug 18403
Hide patron information if not part of the logged in user library group
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18403: Add POD for output_and_exit_if_error
Bug-18403-Add-POD-for-outputandexitiferror.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2018-02-12 19:35:29 UTC
(
hide
)
Description:
Bug 18403: Add POD for output_and_exit_if_error
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-12 19:35:29 UTC
Size:
1.19 KB
patch
obsolete
>From d433a4dc3d18c68ed579c5c720465060602283b2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Feb 2018 16:57:01 -0300 >Subject: [PATCH] Bug 18403: Add POD for output_and_exit_if_error > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Output.pm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/C4/Output.pm b/C4/Output.pm >index 58bd75a690..c605739f71 100644 >--- a/C4/Output.pm >+++ b/C4/Output.pm >@@ -307,6 +307,21 @@ sub is_ajax { > return ( $x_req and $x_req =~ /XMLHttpRequest/i ) ? 1 : 0; > } > >+=item >+ >+ output_and_exit_if_error( $query, $cookie, $template, $params ); >+ >+To executed at the beginning of scripts to stop the script at this point if >+some errors are found. >+ >+Tests for module 'members': >+* patron is not defined (we are looking for a patron that does no longer exist/never existed) >+* The logged in user cannot see patron's infos (feature 'cannot_see_patron_infos') >+ >+Others will be added here depending on the needs (for instance biblio does not exist will be useful). >+ >+=cut >+ > sub output_and_exit_if_error { > my ( $query, $cookie, $template, $params ) = @_; > my $error; >-- >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 18403
:
62010
|
62011
|
62012
|
62013
|
62014
|
62015
|
62016
|
62017
|
62018
|
62019
|
62020
|
62021
|
62022
|
62023
|
62024
|
62025
|
62026
|
62027
|
62028
|
62029
|
62030
|
62031
|
62032
|
62033
|
62302
|
62303
|
62830
|
62831
|
62832
|
62833
|
62834
|
62835
|
62836
|
62837
|
62838
|
62839
|
62840
|
62841
|
62842
|
62843
|
62844
|
62845
|
62846
|
62847
|
62848
|
62849
|
62850
|
62851
|
62852
|
62853
|
62854
|
62855
|
71392
|
71394
|
71500
|
71501
|
71502
|
71503
|
71504
|
71505
|
71506
|
71507
|
71508
|
71509
|
71510
|
71511
|
71512
|
71513
|
71514
|
71515
|
71516
|
71517
|
71518
|
71519
|
71520
|
71521
|
71522
|
71523
|
71524
|
71525
| 71526 |
71527
|
71528
|
71529
|
71530
|
71767