|
Lines 110-121
my $lost_control_pref = C4::Context->preference('LostChargesControl');
Link Here
|
| 110 |
my $home_holding_pref = C4::Context->preference('HomeOrHoldingBranch'); |
110 |
my $home_holding_pref = C4::Context->preference('HomeOrHoldingBranch'); |
| 111 |
if ( ( scalar @branches || scalar @skip_branches ) |
111 |
if ( ( scalar @branches || scalar @skip_branches ) |
| 112 |
&& $lost_control_pref eq 'PickupLibrary' |
112 |
&& $lost_control_pref eq 'PickupLibrary' |
| 113 |
&& !( C4::Context->userenv->{branch} ) ) |
113 |
&& !( C4::Context->userenv->{'branch'} ) ) |
| 114 |
{ |
114 |
{ |
| 115 |
pod2usage( |
115 |
pod2usage( |
| 116 |
-verbose => 0, |
116 |
-verbose => 0, |
| 117 |
-message => |
117 |
-message => |
| 118 |
"There is no branch set for the cron user, LostCharge Control is set to 'library you are logged in at'.\n" |
118 |
"There is no branch set for the cron user, LostChargesControl is set to 'library you are logged in at'.\n" |
| 119 |
. "No branches will satisfy this requirement - exiting.", |
119 |
. "No branches will satisfy this requirement - exiting.", |
| 120 |
-exitval => 1 |
120 |
-exitval => 1 |
| 121 |
); |
121 |
); |
| 122 |
- |
|
|