]> git.koha-community.org Git - koha.git/commit
Bug 27824: Trim column headers
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 5 Jul 2023 13:44:50 +0000 (15:44 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 13 Jul 2023 18:19:33 +0000 (15:19 -0300)
commit2c73648f77e530fdd50885bd0e72343d0d4c5c4e
treef853b41491d7abcdf44776a41e7f437381ab887e
parenta91e80af7dc76c926c246b8f6f98bf6682345dcd
Bug 27824: Trim column headers

To support additional spaces.

Using the system for defining a column name placeholder (Bug 23390), if
there is a space inside the column name placeholder it won't work. The
SQL example in Bug 5697:

SELECT
i.itemnumber,
i.itemnumber as Exemplarnummber,
[[i.itemnumber| itemnumber for batch]],
CONCAT('<a
href=\"/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=',
i.biblionumber, '&itemnumber=', i.itemnumber, '#edititem', '\">',
i.itemnumber, '</a>' ) AS "itemnumber as edit link"
FROM items i

"[[i.itemnumber| itemnumber for batch]]" has a space before "itemnumber
for batch." With that space removed it works as expected.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Report.pm