From 973b86afb17ccce1d757565400e2f3dd36b39ba3 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 14 Feb 2023 13:10:15 -0700 Subject: [PATCH] Addressbook: Skip duplicate check in advanced search --- addressbook/js/app.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index dd000c93d6..39115e5e43 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -716,15 +716,20 @@ class AddressbookApp extends EgwApp */ check_value(widget, own_id) { + // Skip check in advanced search + if(this.et2.getArrayMgr("content").getEntry("showsearchbuttons") === true) + { + return; + } // if we edit an account, call account_change to let it do it's stuff too - if (this.et2.getWidgetById('account_lid')) + if(this.et2.getWidgetById('account_lid')) { this.account_change(null, widget); } var values = this.et2._inst.getValues(this.et2); - if (widget.id.match(/n_/)) + if(widget.id.match(/n_/)) { var value = ''; if (values.n_prefix) value += values.n_prefix+" ";