瀏覽代碼

Ajustement SettingModel

develop
Guillaume 3 年之前
父節點
當前提交
c12d675b23
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      Doctrine/Extension/SluggableTrait.php
  2. +2
    -2
      Model/Setting/SettingModel.php
  3. +1
    -1
      Resources/views/adminlte/block/navbar_header.html.twig

+ 1
- 1
Doctrine/Extension/SluggableTrait.php 查看文件

@@ -9,7 +9,7 @@ trait SluggableTrait
{
/**
* @ORM\Column(type="string", length=255)
* @Gedmo\Slug(fields={"title"}, unique=true)
* @Gedmo\Slug(fields={"title"}, unique=false)
*/
protected $slug;


+ 2
- 2
Model/Setting/SettingModel.php 查看文件

@@ -11,7 +11,7 @@ use Lc\SovBundle\Model\File\FileInterface;
abstract class SettingModel implements SettingInterface
{
/**
* @ORM\Column(type="string", length=63)
* @ORM\Column(type="string", length=63, nullable=true)
*/
protected $name;

@@ -35,7 +35,7 @@ abstract class SettingModel implements SettingInterface
return $this->name;
}

public function setName(string $name): self
public function setName(?string $name): self
{
$this->name = $name;


+ 1
- 1
Resources/views/adminlte/block/navbar_header.html.twig 查看文件

@@ -45,7 +45,7 @@
</a>
</li>
<li class="nav-item">
<a href="{{ path(sov_homepage_route(), {section: section_slug_current()}) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank"
<a href="{{ path(sov_homepage_route(), {section: section_current_slug()}) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank"
rel="noreferrer">
<i class="action-icon fa fa-eye"></i>
Afficher le site

Loading…
取消
儲存