From 36fc438075c73ecadfce7de6305660aedf9331c9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 1 Oct 2018 18:44:05 +0200 Subject: fix datatype for rhimportd json request diff --git a/rhautoimport.pm b/rhautoimport.pm index a366d9a..9bdbc8b 100644 --- a/rhautoimport.pm +++ b/rhautoimport.pm @@ -215,7 +215,7 @@ sub import_uri $request{'LOGIN_NAME'} = RD_USER; $request{'SHOW_ID'} = int($show_id); if($cart) { - $request{'CART_NUMBER'} = $cart; + $request{'CART_NUMBER'} = $cart + 0; ## force $cart to be of type number $request{'CLEAR_CART'} = JSON->true; } else { $request{'CLEAR_SHOW_CARTS'} = JSON->true; -- cgit v0.10.2