[Koha-bugs] [Bug 27127] Wrong display of messages if there was only 1 record modified

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 17 20:33:29 CET 2020


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

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #114162|0                           |1
        is obsolete|                            |

--- Comment #5 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 114491
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114491&action=edit
Bug 27127: Make Koha::BackgroundJob->messages return a scalar

Otherwise the code in the template is not handled correctly:
112                     [% FOR m IN job.messages %]

m will become each key/val of the message hash:
{"type":"success","biblionumber":"1","code":"biblio_modified"}
And not the whole hash

Test plan:
Modify one biblio using the batch record modification tool
Modify two biblios using the batch record modification tool
Go to the detail view of each job and confirm that with this patch the
display is correct

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>

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


More information about the Koha-bugs mailing list