Custom Fields on Campaign are hidden on validation
Overview
When trying to submit a new Campaign with a Type that have custom fields, if the valdator return some error/fields missing, the custom fields are hidden.
Reproduction steps
- Create some Custom Fields for a Campaign Type. Administer -> Customize Data and Screens -> Custom Fields
- Create new Campaign. Campaigns-> New Campaign
- Select the Campaign Type that have the custom fields but don't input the title (for easier validation). The custom fields appers at bottom.
- Click Save
- The custom fields are hidden because validator tells you to fill the Title field.
Current behaviour
Expected behaviour
Custom fields should still remain after validation fails.
Environment information
- CiviCRM: Master/5.69.alpha1