[Koha-bugs] [Bug 27292] New: TablesSettings.GetColumns() returning nothing creates unexpected Javascript on request.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 22 07:05:28 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27292

            Bug ID: 27292
           Summary: TablesSettings.GetColumns() returning nothing creates
                    unexpected Javascript on request.tt
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

I was rebasing Bug 15565 when I noticed strange Javascript errors.

The following code in master was the actual problem:

columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ',
'circulation', 'table_borrowers', 'json' ) | $raw %]

At the moment in koha-testing-docker, this creates the following Javascript:

"columns_settings_borrowers_table = "

For some reason, this doesn't currently cause a problem because the next line
is blank and that line is followed by "$(document).ready(function() {".

Anyway, there should be data coming back there, so that's something to
investigate...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list