From: Lebbeous Fogle-Weekley Date: Thu, 24 Jan 2013 17:28:39 +0000 (-0500) Subject: Acq: New PO template created malformed JSON in the INC_COPIES=0 case X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6776f9e17391c1ed0ae4b57efeee4de3f44f146e;p=working%2FEvergreen.git Acq: New PO template created malformed JSON in the INC_COPIES=0 case And now it no longer should. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 88051810eb..a544b3b6cb 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -8136,10 +8136,10 @@ $$ [% FOR note IN ftx_vals -%] "[% note %]"[% UNLESS loop.last %], [% END %][% END %] ], - "quantity":[% li.lineitem_details.size %], + "quantity":[% li.lineitem_details.size %] [%- IF INC_COPIES -%] - "copies" : [ + ,"copies" : [ [%- compressed_copies = []; FOR lid IN li.lineitem_details; fund = lid.fund.code;