Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: 8.5.2 does not autocomplete group names Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tigertech
Newbie
Newbie


Joined: 21 November 2019
Online Status: Offline
Posts: 23
Posted: 25 November 2020 at 10:11am | IP Logged Quote tigertech

In version 8.5.2, I noticed that typing the first few characters if a group name (that is not also an individual contact name) does not autocomplete the group. This worked in versions 8.5.1 and earlier.

This appears to be because of this change between 8.5.1 and 8.5.2:

Code:

--- ./webmail-pro-8.5.1/static/js/ContactsWebclient.app.fdf24d884fd6a8190fc8.js     2020-11-25 09:22:35.894479987 -0800
+++ ./webmail-pro-8.5.2/static/js/ContactsWebclient.app.49830297d9abc702d68a.js     2020-11-25 09:33:01.807480992 -0800
@@ -1557,7 +1557,7 @@
          }
     ;

-     Ajax.send('GetContacts', oParameters, function (oResponse) {
+     Ajax.send('GetContactSuggestions', oParameters, function (oResponse) {
          var aList = [];
          if (oResponse && oResponse.Result && oResponse.Result.List)
          {


Changing that line back from "GetContactSuggestions" to "GetContacts" fixes it.
Back to Top View tigertech's Profile Search for other posts by tigertech
 
tigertech
Newbie
Newbie


Joined: 21 November 2019
Online Status: Offline
Posts: 23
Posted: 25 November 2020 at 11:31am | IP Logged Quote tigertech

As a quick reply to my own post, further checking indicates that this is because "public function onGetContactSuggestions" in "modules/PersonalContacts/Module.php" does this:

Code:

     $mResult['personal'] = \Aurora\Modules\Contacts\Module::Decorator()->GetContacts(
               $aArgs['UserId'],
               self::$sStorage,
               0,
               $aArgs['Limit'],
               $aArgs['SortField'],
               $aArgs['SortOrder'],
               $aArgs['Search']
     );


That calls "public function GetContacts" in "modules/Contacts/Module.php" with "$WithGroups" set to false.

Changing $WithGroups to true in "public function onGetContactSuggestions" fixes it:

Code:

--- a/modules/PersonalContacts/Module.php
+++ b/modules/PersonalContacts/Module.php
@@ -220,7 +220,8 @@ class Module extends \Aurora\System\Modu
                    $aArgs['Limit'],
                    $aArgs['SortField'],
                    $aArgs['SortOrder'],
-                    $aArgs['Search']
+                    $aArgs['Search'],
+                    '', array(), true
               );
          }
     }

Back to Top View tigertech's Profile Search for other posts by tigertech
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 25 November 2020 at 10:32pm | IP Logged Quote Igor

Thank you for the detailed feedback! I'm forwarding this to the developers, and I hope the fix you've provided will be included in the next release.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 14 December 2020 at 5:40am | IP Logged Quote Igor

BTW, can we reach you by the email you used to register on this forum to ask you a few questions regarding or product? Thank you.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide