Jump to content
Froxlor Forum
  • 0

Ändern der PHP-Konfiguration für den Froxlor-VHost nicht möglich


rseffner

Question

4 answers to this question

Recommended Posts

  • 0

Ich kanns zwar reproduzieren, aber nicht verstehen wieso das in 2.0.x funktioniert und in 2.1.x nicht - der code dafür ist eigentlich identisch...folgende Änderung lässt bei mir die Option wieder speichern:

 

diff --git a/lib/Froxlor/UI/Form.php b/lib/Froxlor/UI/Form.php
index 694fd3d9..9645f18f 100644
--- a/lib/Froxlor/UI/Form.php
+++ b/lib/Froxlor/UI/Form.php
@@ -236,8 +236,8 @@ class Form
                                        if (\Froxlor\Validate\Form::validateFieldDefinition($groupdetails)) {
                                                // Prefetch form fields
                                                foreach ($groupdetails['fields'] as $fieldname => $fielddetails) {
-                                                       if (!$only_enabledisable || ($only_enabledisable && isset($fielddetails['overview_option']))) {
-                                                               $groupdetails['fields'][$fieldname] = self::arrayMergePrefix($fielddetails, $fielddetails['type'], self::prefetchFormFieldData($fieldname, $fielddetails));
+                                                       if (!$only_enabledisable || isset($fielddetails['overview_option'])) {
+                                                               $groupdetails['fields'][$fieldname] = array_merge($fielddetails, self::prefetchFormFieldData($fieldname, $fielddetails));
                                                                $form['groups'][$groupname]['fields'][$fieldname] = $groupdetails['fields'][$fieldname];
                                                        }
                                                }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...