mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-17 22:29:58 +08:00
fix error if custom list is not set
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
parent
745076df22
commit
2e57eba9da
1 changed files with 8 additions and 1 deletions
|
|
@ -51,7 +51,14 @@
|
|||
function getSearchFieldArraySettings(){
|
||||
|
||||
var res = SettingsService.getSetting('searchbox_settings');
|
||||
searchfields = JSON.parse(res);
|
||||
|
||||
if(res!== ""){
|
||||
searchfields = JSON.parse(res);
|
||||
}else{
|
||||
searchfields=defaults;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function getSearchFieldArrayForFiltering(){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue