fix searchbox check

This commit is contained in:
xiaomlove
2022-11-26 13:24:30 +08:00
parent 536f0dcb6e
commit 65819d6c5d
6 changed files with 29 additions and 9 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class SearchBox extends NexusModel
$other = $data['other'] ?? [];
$data["extra->" . self::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST] = in_array(self::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST, $other) ? 1 : 0;
$data["extra->" . self::EXTRA_DISPLAY_SEED_BOX_ICON_ON_TORRENT_LIST] = in_array(self::EXTRA_DISPLAY_SEED_BOX_ICON_ON_TORRENT_LIST, $other) ? 1 : 0;
$data['custom_fields'] = array_filter($data['custom_fields']);
return $data;
}
+2 -2
View File
@@ -8,6 +8,8 @@ class TorrentCustomField extends NexusModel
{
protected $table = 'torrents_custom_fields';
public $timestamps = true;
protected $fillable = [
'name', 'label', 'type', 'required', 'is_single_row', 'options', 'help', 'display', 'priority'
];
@@ -21,7 +23,5 @@ class TorrentCustomField extends NexusModel
}
return $result;
}
public $timestamps = true;
}