View | Details | Raw Unified | Return to bug 23420
Collapse All | Expand All

(-)a/C4/UsageStats.pm (-1 lines)
Lines 266-272 sub BuildReport { Link Here
266
        ShowReviewerPhoto
266
        ShowReviewerPhoto
267
        SocialNetworks
267
        SocialNetworks
268
        suggestion
268
        suggestion
269
        AllowPurchaseSuggestionBranchChoice
270
        OpacAllowPublicListCreation
269
        OpacAllowPublicListCreation
271
        OpacAllowSharingPrivateLists
270
        OpacAllowSharingPrivateLists
272
        OpacRenewalAllowed
271
        OpacRenewalAllowed
(-)a/opac/opac-suggestions.pl (-14 lines)
Lines 219-238 foreach my $suggestion(@$suggestions_loop) { Link Here
219
219
220
my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG");
220
my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG");
221
221
222
# Is the person allowed to choose their branch
223
if ( C4::Context->preference("AllowPurchaseSuggestionBranchChoice") ) {
224
    my $branchcode = $input->param('branchcode') || q{};
225
226
    if ( !$branchcode
227
        && C4::Context->userenv
228
        && C4::Context->userenv->{branch} )
229
    {
230
        $branchcode = C4::Context->userenv->{branch};
231
    }
232
233
    $template->param( branchcode => $branchcode );
234
}
235
236
my @mandatoryfields;
222
my @mandatoryfields;
237
{
223
{
238
    last unless ($op eq 'add');
224
    last unless ($op eq 'add');
(-)a/t/db_dependent/UsageStats.t (-2 lines)
Lines 527-533 sub mocking_systempreferences_to_a_set_value { Link Here
527
        ShowReviewerPhoto
527
        ShowReviewerPhoto
528
        SocialNetworks
528
        SocialNetworks
529
        suggestion
529
        suggestion
530
        AllowPurchaseSuggestionBranchChoice
531
        OpacAllowPublicListCreation
530
        OpacAllowPublicListCreation
532
        OpacAllowSharingPrivateLists
531
        OpacAllowSharingPrivateLists
533
        OpacRenewalAllowed
532
        OpacRenewalAllowed
534
- 

Return to bug 23420