瀏覽代碼

Update form in Profile\Mod page

Visman 1 年之前
父節點
當前提交
c15e89a2d2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Models/Pages/Profile/Mod.php

+ 2 - 1
app/Models/Pages/Profile/Mod.php

@@ -132,9 +132,10 @@ class Mod extends Profile
                 $fields = [];
                 $fields["name{$forum->id}"] = [
                     'class'   => ['modforum', 'name', 'depth' . $forum->depth],
-                    'type'    => 'str',
+                    'type'    => 'label',
                     'value'   => $forum->forum_name,
                     'caption' => 'Forum label',
+                    'for'     => "moderator[{$forum->id}]",
                 ];
                 $fields["moderator[{$forum->id}]"] = [
                     'class'    => ['modforum', 'moderator'],