Fixes bug 998473 cast build_type to enum instead of name type
Migration for bug 998473
Merge pull request #2021 from selenamarie/bug998473-new-product-fix

Fixes bug 998473 cast build_type to enum instead of name type