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

(-)a/Koha/REST/V1/Illrequests.pm (+3 lines)
Lines 156-161 sub list { Link Here
156
        if ($embed{comments}) {
156
        if ($embed{comments}) {
157
            $to_push->{comments} = $req->illcomments->count;
157
            $to_push->{comments} = $req->illcomments->count;
158
        }
158
        }
159
        if ($embed{status_alias}) {
160
            $to_push->{status_alias} = $req->statusalias;
161
        }
159
        push @output, $to_push;
162
        push @output, $to_push;
160
    }
163
    }
161
164
(-)a/api/v1/swagger/paths/illrequests.json (+1 lines)
Lines 14-19 Link Here
14
                "items": {
14
                "items": {
15
                    "type": "string",
15
                    "type": "string",
16
                    "enum": [
16
                    "enum": [
17
                        "status_alias",
17
                        "patron",
18
                        "patron",
18
                        "library",
19
                        "library",
19
                        "capabilities",
20
                        "capabilities",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-2 / +1 lines)
Lines 827-833 Link Here
827
            // Get our data from the API and process it prior to passing
827
            // Get our data from the API and process it prior to passing
828
            // it to datatables
828
            // it to datatables
829
            var ajax = $.ajax(
829
            var ajax = $.ajax(
830
                '/api/v1/illrequests?embed=metadata,patron,capabilities,library,comments'
830
                '/api/v1/illrequests?embed=metadata,patron,capabilities,library,comments,status_alias'
831
                ).done(function() {
831
                ).done(function() {
832
                    var data = JSON.parse(ajax.responseText);
832
                    var data = JSON.parse(ajax.responseText);
833
                    // Make a copy, we'll be removing columns next and need
833
                    // Make a copy, we'll be removing columns next and need
834
- 

Return to bug 20581