Commit 0f9acf9a authored by Kevin Stover's avatar Kevin Stover

Fixing a bug with blank form templates.

parent 341cf62d
Pipeline #603 passed with stage
in 1 minute and 26 seconds
......@@ -13,10 +13,10 @@ class NF_AJAX_REST_NewFormTemplates extends NF_AJAX_REST_Controller
$templates = Ninja_Forms()->config( 'NewFormTemplates' );
usort( $templates, array( $this, 'cmp' ) );
array_unshift( $templates, array(
'id' => 'new',
'title' => __( 'Blank Form', 'ninja-forms' ),
'id' => 'formtemplate-new',
'title' => __( 'Blank Form', 'ninja-forms' ),
'template-desc' => __( 'The blank form allows you to create any type of form using our drag & drop builder.', 'ninja-forms' ),
'type' => 'default'
'type' => 'default'
) );
return array_values( $templates ); // Remove keys so that the JSON is an array.
}
......
......@@ -63,9 +63,9 @@ $templates = array(
),
'formtemplate-exportdata' => array(
'id' => 'formtemplate-exportdata',
'title' => __( 'Export Data Request', 'ninja-forms' ),
'template-desc' => __( 'Includes action to add users to WordPress\' personal data export tool, allowing admins to comply with the GDPR and other privacy regulations from the site\'s front end.', 'ninja-forms' ),
'id' => 'formtemplate-exportdata',
'title' => __( 'Export Data Request', 'ninja-forms' ),
'template-desc' => __( 'Includes action to add users to WordPress\' personal data export tool, allowing admins to comply with the GDPR and other privacy regulations from the site\'s front end.', 'ninja-forms' ),
),
);
......
{"settings":{"objectType":"Form Setting","editActive":"1","title":"Blank Form","created_at":"2018-10-16 14:11:12","wrapper_class":"","element_class":"","key":"","add_submit":"1","currency":"","unique_field_error":"A form with this value has already been submitted.","not_logged_in_msg":"","sub_limit_msg":"The form has reached its submission limit.","calculations":[],"formContentData":[],"drawerDisabled":""},"fields":[],"actions":[]}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment