Acq: New PO template created malformed JSON in the INC_COPIES=0 case
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 24 Jan 2013 17:28:39 +0000 (12:28 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 5 Feb 2013 22:17:25 +0000 (17:17 -0500)
And now it no longer should.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql

index 8805181..a544b3b 100644 (file)
@@ -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;