Zentyal/zentyal — pull request #1568 by blaxter (2014-09-22 15:24:16+00:00)
Title: Fix subscription with several bundles but all of the same type

I get a `$BUNDLE_IDS` file with the following content:

9585:"COMPANYNAME - Premium Edition"
9586:"COMPANYNAME - Premium Edition"
9587:"COMPANYNAME - Premium Edition"
9588:"COMPANYNAME - Premium Edition"

This will be considered as having 1 bundle and the script will set badly the `$BUNDLE_ID` variable that will be used in following https requests (that will fail with a 400 error: bad request)

The problem is that `$BUNDLE_ID` will be set (with the previous `$BUNDLE_IDS` example file) to `9585 9586 9587 9588` we want to be set with any of those ids (only one).

:exclamation: This need to be merged also into **3.2** branch :exclamation: