Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed handling of override when other errors present.

  • Loading branch information...
commit 820e36e4de2c549deca748bfce73a4c6d76620e3 1 parent 55964d4
J. David Bavousett authored April 27, 2010

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  circ/circulation.pl
9  circ/circulation.pl
@@ -310,8 +310,13 @@
310 310
     CanBookBeIssued( $borrower, $barcode, $datedue , $inprocess );
311 311
   my $blocker = $invalidduedate ? 1 : 0;
312 312
 
313  
-  delete $question->{'DEBT'} if ($circ_session->{'debt_confirmed'} || $circ_session->{'charges_overridden'});
314  
-  granular_overrides($circ_session, $error, $question);
  313
+  if ($circ_session->{'debt_confirmed'} || $circ_session->{'charges_overridden'}) {
  314
+    delete $question->{'DEBT'};
  315
+    delete $error->{'DEBT'};
  316
+  }
  317
+  if (C4::Context->preference('GranularPermissions')){
  318
+     granular_overrides($template, $error, $question);
  319
+  }
315 320
 
316 321
   foreach my $impossible ( keys %$error ) {
317 322
             $template->param(

0 notes on commit 820e36e

Please sign in to comment.
Something went wrong with that request. Please try again.