From c35583011d322baec17db5b0f4b8c7d14af6a588 Mon Sep 17 00:00:00 2001 From: Ɓukasz Wilenski Date: Thu, 3 Feb 2011 20:13:00 +0000 Subject: allow autocomplete when only one family tree exists --- admin_users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'admin_users.php') diff --git a/admin_users.php b/admin_users.php index 7517f58e53..aec8887719 100644 --- a/admin_users.php +++ b/admin_users.php @@ -199,7 +199,9 @@ if ($action=='createuser' || $action=='edituser2') { } } else { print_header(WT_I18N::translate('User administration')); -// if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm'; Removed becasue it doesn't work here for multiple GEDCOMs. Can be reinstated when fixed (https://bugs.launchpad.net/webtrees/+bug/613235) + if (get_gedcom_count()==1) { //Removed becasue it doesn't work here for multiple GEDCOMs. Can be reinstated when fixed (https://bugs.launchpad.net/webtrees/+bug/613235) + if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm'; + } } // Print the form to edit a user -- cgit v1.3