Bug 22072 - Datatable Javascript error on subscription-detail.pl
Summary: Datatable Javascript error on subscription-detail.pl
Status: RESOLVED DUPLICATE of bug 22239
Alias: None
Product: Koha
Classification: Unclassified
Component: Serials (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-07 06:34 UTC by David Cook
Modified: 2019-02-10 11:25 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2019-01-07 06:34:34 UTC
When I create a fresh git install of Koha and go to /cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=1, I'm seeing the following in the console:

jquery.treetable_18.1101000.js:481 Uncaught TypeError: Cannot read property 'expandAll' of undefined
    at a.fn.init.expandAll (jquery.treetable_18.1101000.js:481)
    at a.fn.init.$.fn.treetable (jquery.treetable_18.1101000.js:608)
    at HTMLDocument.<anonymous> (subscription-detail.pl?subscriptionid=1:952)
    at i (jquery-2.2.3.min_18.1101000.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.2.3.min_18.1101000.js:2)
    at Function.ready (jquery-2.2.3.min_18.1101000.js:2)
    at HTMLDocument.J (jquery-2.2.3.min_18.1101000.js:2)

This is invoked by the second function call here:

            $(table).treetable({
                expandable: true
            });
            $(table).treetable('expandAll');

The table is for "orders" which doesn't sound familiar to me on this page, but oh well. Should be an easy enough fix. I don't have time for it now, so just reporting here for the time being.
Comment 1 Katrin Fischer 2019-02-10 11:25:10 UTC

*** This bug has been marked as a duplicate of bug 22239 ***