diff --git a/src/modules/Formbuilder/Service.php b/src/modules/Formbuilder/Service.php index e4d43d1dc..3ca9a2e9b 100644 --- a/src/modules/Formbuilder/Service.php +++ b/src/modules/Formbuilder/Service.php @@ -1,4 +1,5 @@ $r) { - $fields[$key]['options'] = json_decode($r['options'], true); - $fields[$key]['default_value'] = (json_decode($r['default_value'])) ? (json_decode($r['default_value'], true)) : $r['default_value']; - } + if (!empty($r['options'])) { + $fields[$key]['options'] = json_decode($r['options'], true); + } else { + $fields[$key]['options'] = []; + } + + if(!empty($r['default_value'])){ + $fields[$key]['default_value'] = (json_decode($r['default_value'])) ? (json_decode($r['default_value'], true)) : $r['default_value']; + } else { + $fields[$key]['default_value'] = ''; + } + } return $fields; } diff --git a/src/modules/Invoice/Service.php b/src/modules/Invoice/Service.php index 64b9abc40..5082c34bd 100644 --- a/src/modules/Invoice/Service.php +++ b/src/modules/Invoice/Service.php @@ -1,4 +1,5 @@ $data) { - if (empty(trim($data))) { + if ($data !== null && empty(trim($data))) { unset($sourceData[$label]); } } diff --git a/src/modules/Support/html_client/mod_support_contact_us.html.twig b/src/modules/Support/html_client/mod_support_contact_us.html.twig index 4808810bd..9ddb1ed86 100644 --- a/src/modules/Support/html_client/mod_support_contact_us.html.twig +++ b/src/modules/Support/html_client/mod_support_contact_us.html.twig @@ -21,7 +21,7 @@
-
+
@@ -82,18 +82,9 @@ {% endblock %} diff --git a/src/modules/Support/html_client/mod_support_contact_us_conversation.html.twig b/src/modules/Support/html_client/mod_support_contact_us_conversation.html.twig index 8d573f9ed..ac3077b91 100644 --- a/src/modules/Support/html_client/mod_support_contact_us_conversation.html.twig +++ b/src/modules/Support/html_client/mod_support_contact_us_conversation.html.twig @@ -48,8 +48,8 @@
- - {{ 'Reply'|trans }} + + {{ 'Reply'|trans }}
@@ -85,7 +85,7 @@ - + {% elseif ticket.status == 'closed' %}
{{ 'Ticket was closed and cannot be reopened.'|trans }}
diff --git a/src/modules/Theme/Service.php b/src/modules/Theme/Service.php index 5a1fa22cf..8b3476c21 100644 --- a/src/modules/Theme/Service.php +++ b/src/modules/Theme/Service.php @@ -1,4 +1,5 @@