fix: repair job_type dropdown options and remove job_logo from forms
The job_type select field had empty options because Formidable stores them in a top-level `options` key, not nested inside `field_options`. The job_logo field is removed from both submission and edit forms since the logo is managed per-provider on the dashboard. Includes a one-time repair migration that fixes existing fields in the database (updates job_type options, deletes job_logo fields). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -68,17 +68,6 @@ class DDHH_JM_ACF_Fields {
|
||||
'type' => 'email',
|
||||
'required' => 1,
|
||||
),
|
||||
// Job Logo
|
||||
array(
|
||||
'key' => 'field_job_logo',
|
||||
'label' => __( 'Logo', 'ddhh-job-manager' ),
|
||||
'name' => 'job_logo',
|
||||
'type' => 'image',
|
||||
'required' => 0,
|
||||
'return_format' => 'id',
|
||||
'preview_size' => 'thumbnail',
|
||||
'library' => 'all',
|
||||
),
|
||||
// Job Deactivation Reason (internal, admin-only)
|
||||
array(
|
||||
'key' => 'field_job_deactivation_reason',
|
||||
|
||||
Reference in New Issue
Block a user