fix form import
This commit is contained in:
@@ -127,7 +127,9 @@ function wiaas_db_update_add_installation_date_delivery_action_form() {
|
||||
|
||||
$action_form_json = file_get_contents( dirname( __FILE__ ) . '/data/delivery-forms/delivery-action-enter-installation-date.json' );
|
||||
|
||||
$action_form_meta = json_decode( $action_form_json, true )[0];
|
||||
$action_form_meta = json_decode( $action_form_json, true )[0];
|
||||
|
||||
do_action('gform_forms_post_import', GFAPI::add_form($action_form_meta));
|
||||
$action_form_id = GFAPI::add_form($action_form_meta);
|
||||
|
||||
do_action('gform_forms_post_import', array( GFAPI::get_form($action_form_id) ));
|
||||
}
|
||||
Reference in New Issue
Block a user