| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | $adminFormHandler = new AdminFormHandler(); |
| 56 | 56 | foreach ($forms as $form) { |
| 57 | 57 | $formID = $form->id; |
| 58 | 58 | $formContent = json_decode($form->form_content); |
| 59 | - $fields = wp_json_encode($formContent->fields); | |
| 59 | + $fields = json_encode($formContent->fields); | |
| 60 | 60 | if (isset($formContent->buttons)) { |
| 61 | 61 | if (false === strpos($fields, '"btnTyp":"submit"')) { |
| 62 | 62 | $align = isset($formContent->buttons->align) ? $formContent->buttons->align : 'right'; |
| 63 | 63 | $btnSiz = isset($formContent->buttons->btnSiz) ? $formContent->buttons->btnSiz : 'md'; |
| @@ -74,9 +74,9 @@ | ||
| 74 | 74 | $newID = $oldID; |
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | $newID = $newID + 1; |
| 78 | - $sBtnID = "bf{$formID}-{$newID}"; | |
| 78 | + $sBtnID = "bf${formID}-${newID}"; | |
| 79 | 79 | $lY = 0; |
| 80 | 80 | $mY = 0; |
| 81 | 81 | $sY = 0; |
| 82 | 82 | foreach ($formContent->layout->lg as $lg) { |
| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | } |
| 99 | 99 | $sY = $sY + $sm->h + 1; |
| 100 | 100 | if (isset($formContent->buttons->rstBtnTxt)) { |
| 101 | 101 | $newID += 1; |
| 102 | - $rBtnID = "bf{$formID}-{$newID}"; | |
| 102 | + $rBtnID = "bf${formID}-${newID}"; | |
| 103 | 103 | |
| 104 | 104 | if ($fulW) { |
| 105 | 105 | $btnData['btnTyp'] = 'submit'; |
| 106 | 106 | $btnData['align'] = $align; |