diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-14 14:40:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-14 14:40:16 +0200 |
commit | 972e9098215a28f45e8542b0f34b79aa42096f0e (patch) | |
tree | 63c0d96e2d1db61f13c73f1f06ccf19dce37d2a9 /src/backend/taler-merchant-httpd_private-post-orders.c | |
parent | 9fe3318563f3ca02147b80d66f8f49e1f7d04353 (diff) | |
download | merchant-972e9098215a28f45e8542b0f34b79aa42096f0e.tar.gz merchant-972e9098215a28f45e8542b0f34b79aa42096f0e.tar.bz2 merchant-972e9098215a28f45e8542b0f34b79aa42096f0e.zip |
fix #6844
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 528cb9ef..9ae9a1bd 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1153,7 +1153,7 @@ merge_inventory (struct MHD_Connection *connection, { json_t *p; - p = json_pack ("{s:s, s:o, s:s, s:o, s:o, s:o}", + p = json_pack ("{s:s, s:o, s:s, s:o, s:o, s:o, s:I}", "description", pd.description, "description_i18n", @@ -1165,7 +1165,9 @@ merge_inventory (struct MHD_Connection *connection, "taxes", pd.taxes, "image", - pd.image); + pd.image, + "quantity", + (json_int_t) inventory_products[i].quantity); GNUNET_assert (NULL != p); GNUNET_assert (0 == json_array_append_new (np, |