mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
default port group in Settings (#13175)
* default port group in Settings * . * wrap query with try catch * update config schema * change to select2 * . * . * inject no default port group choice * Paginator * .
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
namespace App\Http\Controllers\Select;
|
||||
|
||||
use App\Models\PollerGroup;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class PollerGroupController extends SelectController
|
||||
{
|
||||
@@ -52,15 +51,4 @@ class PollerGroupController extends SelectController
|
||||
|
||||
return parent::formatResponse($paginator);
|
||||
}
|
||||
|
||||
private function includeGeneral(): bool
|
||||
{
|
||||
if (request()->has('id') && request('id') !== 0) {
|
||||
return false;
|
||||
} elseif (request()->has('term') && ! Str::contains('general', strtolower(request('term')))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user