Bläddra i källkod

add getValue

develop
Charly 3 år sedan
förälder
incheckning
84cc243a36
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      EventSubscriber/SiteSettingEventSubscriber.php

+ 2
- 1
EventSubscriber/SiteSettingEventSubscriber.php Visa fil

@@ -81,7 +81,8 @@ class SiteSettingEventSubscriber implements EventSubscriberInterface

$this->em->persist($entitySetting);
} else {
if ($entitySetting->getValue() === null
$methodGetValue = 'get' . ucfirst($setting['field']);
if ($entitySetting->$methodGetValue() === null
&& isset($setting['default'])
&& $setting['default'] !== null) {
$methodSetValue = 'set' . ucfirst($setting['field']);

Laddar…
Avbryt
Spara