fixes #3071 - OS edit failed on foreign keys since config_template_id was '0' on blank
fixes #3090 - new puppetclass creation fails when adding smart variable