diff options
author | Christian Pointner <equinox@helsinki.at> | 2018-10-01 16:44:05 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2018-10-01 16:44:05 (GMT) |
commit | 36fc438075c73ecadfce7de6305660aedf9331c9 (patch) | |
tree | 94820ab7e2e1229f837e5e60ca35b8b80e656343 | |
parent | 4c4d6cfaa9b5d820eb9fbc145610bdc25aec671f (diff) |
fix datatype for rhimportd json request
-rw-r--r-- | rhautoimport.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |