Some audits show 'missing' instead of name
1. Go to a product.
2. In tab "Details", change "Sync plan" to a plan called 'test sync plan'.
3. Go to Audits.
Results: The latest audit says something like "Sync plan changed from N/A to Missing(ID: 1)". If you click on the details, it shows the correct text.
Expected result: "Sync plan changed from N/A to test sync plan"
Fixes #24298 - Some audits show 'Missing ID' instead of name
This happens when you're visiting the index page. The helper relies on
'@audit' to generate some of the audits. This does not work, since
@audit is only set when you view the details page of an audit.
For this reason, as an example changing fields of a host with
associations, like the puppet proxy, does not show the proper value in
the index, but it does show the proper value on the details page.
See the issue in Redmine for a reproduced with Katello sync plans.