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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (+5 lines)
Lines 285-290 function mana_use( mana_id ){ Link Here
285
        data: {id:mana_id, resource: 'report', saveinbase: 1},
285
        data: {id:mana_id, resource: 'report', saveinbase: 1},
286
        dataType: "json",
286
        dataType: "json",
287
    })
287
    })
288
    .done( function (result){
289
        window.location = ("/cgi-bin/koha/reports/guided_reports.pl?reports=").concat(result.id).concat("&phase=Show%20SQL");
290
    })
291
    .fail( function ( foo, msg, longmsg){
292
    });
288
}
293
}
289
294
290
function mana_search( textquery ){
295
function mana_search( textquery ){
(-)a/svc/mana/use (-7 / +6 lines)
Lines 42-53 if ( $auth_status ne "ok" ) { Link Here
42
42
43
my $result = Koha::SharedContent::manaGetRequestWithId($input->param('resource'), $input->param('id') );
43
my $result = Koha::SharedContent::manaGetRequestWithId($input->param('resource'), $input->param('id') );
44
my $package = "Koha::".ucfirst($input->param('resource'));
44
my $package = "Koha::".ucfirst($input->param('resource'));
45
my $resource;
45
46
46
if ( $input->param( 'saveinbase' )) {
47
if ( $input->param( 'saveinbase' )) {
47
    $package->new_from_mana($result->{data});
48
    $resource = { id => $package->new_from_mana($result->{data})->id };
48
}
49
}
49
50
else{
50
my $subscription;
51
    $resource = $result->{data};
51
$subscription = $result->{data};
52
}
52
53
print(to_json($resource));
53
print(to_json($subscription));
54
- 

Return to bug 17047