浏览代码

add getValue

develop
Charly 3 年前
父节点
当前提交
84cc243a36
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      EventSubscriber/SiteSettingEventSubscriber.php

+ 2
- 1
EventSubscriber/SiteSettingEventSubscriber.php 查看文件

@@ -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']);

正在加载...
取消
保存