mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
setting limit
This commit is contained in:
parent
c1360f7a7c
commit
9701bd1937
@ -60,7 +60,7 @@ return [
|
||||
'filter' => [
|
||||
'title' => 'visiosoft.module.advs::section.filter',
|
||||
'fields' => [
|
||||
'hide_price_filter', 'hide_date_filter', 'hide_photo_filter', 'hide_map_filter'
|
||||
'hide_price_filter', 'hide_date_filter', 'hide_photo_filter', 'hide_map_filter', 'user_filter_limit'
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
@ -283,4 +283,10 @@ return [
|
||||
'default_value' => 'top-right',
|
||||
]
|
||||
],
|
||||
'user_filter_limit' => [
|
||||
'type' => 'anomaly.field_type.integer',
|
||||
'config' => [
|
||||
'default_value' => 5,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@ -176,4 +176,8 @@ return [
|
||||
'watermark_position' => [
|
||||
'name' => 'Watermark Position',
|
||||
],
|
||||
'user_filter_limit' => [
|
||||
'name' => 'User Filter Limit',
|
||||
'instructions' => 'In the admin panel'
|
||||
]
|
||||
];
|
||||
|
||||
@ -22,7 +22,7 @@ class UsersController extends AdminController
|
||||
->where('first_name', 'LIKE', "%$term%")
|
||||
->orWhere('last_name', 'LIKE', "%$term%")
|
||||
->orWhere('gsm_phone', 'LIKE', "%$term%")
|
||||
->limit(5)
|
||||
->limit(setting_value('visiosoft.module.advs::user_filter_limit'))
|
||||
->pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user