mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 04:52:18 +08:00
add custom field to staffpanel
This commit is contained in:
@@ -399,7 +399,7 @@ JS;
|
||||
$field['custom_field_value'] = $values[$tid][$field['id']];
|
||||
}
|
||||
}
|
||||
return $isArray ? $result : $result[$torrentId];
|
||||
return $isArray ? $result : ($result[$torrentId] ?? []);
|
||||
}
|
||||
|
||||
public function renderOnTorrentDetailsPage($torrentId)
|
||||
@@ -408,6 +408,7 @@ JS;
|
||||
$displayName = get_searchbox_value($browsecatmode, 'custom_fields_display_name');
|
||||
$display = get_searchbox_value($browsecatmode, 'custom_fields_display');
|
||||
$customFields = $this->listTorrentCustomField($torrentId);
|
||||
// dd($displayName, $display, $customFields);
|
||||
$mixedRowContent = nl2br($display);
|
||||
$rowByRowHtml = '';
|
||||
foreach ($customFields as $field) {
|
||||
|
||||
Reference in New Issue
Block a user