← All changes
|
backend/src/Controllers/Template/GetTemplateController.php
+3
-0
1.1.1
→
1.5.1
View file →
| @@ -58,8 +58,11 @@ | ||
| 58 | 58 | BackendStrings::getTemplateStrings()['template_not_found'] |
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + // Apply the same field layout rules used on form create (one field per row by default). | |
| 63 | + $template['form_data'] = $this->templateService->getFormDataFromTemplate($templateId); | |
| 64 | + | |
| 62 | 65 | return new WP_REST_Response([ |
| 63 | 66 | 'success' => true, |
| 64 | 67 | 'data' => $template |
| 65 | 68 | ], 200); |