Puppet Environments are not listed properly in the SCP details page
Description of problem:
The Puppet Environments are not listed properly in Smart Class Parameters details page, based on the selected Organization taxonomy.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have a Satellite with two or more organizations and two or more puppet environments containing a class with parameters
2. Go to Configure > Classes > select some class with params > tab "Smart Class Parameter"
3. See the Puppet Environments field and try to change the Organization scope
environments are not listed properly, for example:
", common, and production"
"KT_abc_Library_def_1, common, and"
", , and KT_abc_Library_def_1"
see the attached screenshots