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

(-)a/serials/subscription-add.pl (-3 / +2 lines)
Lines 377-383 sub redirect_add_subscription { Link Here
377
        $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate,
377
        $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate,
378
        $skip_serialseq, $itemtype, $previousitemtype, $mana_id
378
        $skip_serialseq, $itemtype, $previousitemtype, $mana_id
379
    );
379
    );
380
    if ( (C4::Context->preference('Mana')) and ( grep { $_ eq "subscription" } split(/,/, C4::Context->preference('AutoShareWithMana'))) ){
380
    if ( (C4::Context->preference('Mana') == 1) and ( grep { $_ eq "subscription" } split(/,/, C4::Context->preference('AutoShareWithMana'))) ){
381
        my $result = Koha::SharedContent::send_entity( $query->param('mana_language') || '', $loggedinuser, $subscriptionid, 'subscription');
381
        my $result = Koha::SharedContent::send_entity( $query->param('mana_language') || '', $loggedinuser, $subscriptionid, 'subscription');
382
        $template->param( mana_msg => $result->{msg} );
382
        $template->param( mana_msg => $result->{msg} );
383
    }
383
    }
Lines 465-471 sub redirect_mod_subscription { Link Here
465
    my $skip_serialseq    = $query->param('skip_serialseq');
465
    my $skip_serialseq    = $query->param('skip_serialseq');
466
466
467
    my $mana_id;
467
    my $mana_id;
468
    if ( defined( $query->param('mana_id') ) ) {
468
    if ( $query->param('mana_id') ne "" ) {
469
        $mana_id = $query->param('mana_id');
469
        $mana_id = $query->param('mana_id');
470
        Koha::SharedContent::increment_entity_value("subscription",$mana_id, "nbofusers");
470
        Koha::SharedContent::increment_entity_value("subscription",$mana_id, "nbofusers");
471
    }
471
    }
472
- 

Return to bug 22849