Puppetclass creation audits are not correctly taxed
In Audit logs, Filter type = puppetclass do not list any creation result
Description of problem:
Select Taxonomies that the puppetclasses are in.
Monitor -> Audits, The filter type = puppetclass is not working and shows no audits for created classes
Version-Release number of selected component (if applicable): Foreman 2.0
Only in Taxonomy scope.
If we select Any organization and Any location we see the audits correctly
Fixes #32121 - Puppetclass create audit taxonomy
On Puppetclass create, there are no persisted EnvironmentClasses yet,
so location_ids and organization_ids were always empty on create.
This allows to save EnvironmentClasses with Puppetclasses together and
thus get the location_ids and organization_ids from the unsaved
EnvironmentClasses. Thus the audit for Puppetclass will get correctly