Nathan Gray escribió:
Ok, I’ll assume you’re using Chrome, if not adjust as needed. I’ll go
through the expected results, hopefully you can identify where things go
wrong.
- Open a mail compose window, then Ctrl+Shift+J to open Chrome Dev tools.
- Change to Network tab, and filter by XHR
- In the Mail window, type your search - at least 3 characters
This should trigger the query, and one line should appear in your Dev
tools network tab:
json.php?menuaction=home.etemplate_widget_taglist.ajax_email.etemplate&query=…&include_lists=true
Click on that line, then the ‘Preview tab’ to see what actually comes
back. It should be an array of results like:
{id: ““Test Guy (Chrome Test Org)” <Test.Guy@example.com
mailto:Test.Guy@example.com>”,label: “Test Guy”,…}
Each result should have id, label, name and title.
Hopefully we’ve hit the problem by now, but if not, change to Sources
tab and find phpgwapi/js/jquery/magicsuggest/magicsuggest.js.
Put a breakpoint on line 851:
var sortedData = cfg.mode === ‘remote’ ? _cbData :
self._sortAndTrim(_cbData);
then try a search again. Step through, and if _cbData has the correct
results, keep stepping.
Hi, Nathan.
I’ve taken some time to manage this kind of debug. I use firefox, but
I’ve installed chromium, too, in order to make sure to follow your steps.
I’ve been able to identify the exact snippet of rendered code
corresponding to the search, and the return is always “No suggestions”.
Also, in the scripts in dev tools, there’s none in magicsuggests, so I
haven’t been able to set the breakpoint.
I’m suspecting that I have to enable something for this to work. But
there are two warnings in the console, not sure if related, about
deprecated calls in egw.js to “console.timeline” and “console.timelineEnd”.
I’ve tested this in both egw 14.2 and trunk under linux, with ubuntu
15.04 as server.
Regards.
Nathan
Nathan Gray escribió:
>
>
>
> Hi.
>
>
> I'm using egw 14.2 (not EPL) and apart from what I wrote some days ago,
> I find now the mail autocompletion for email addresses is not working as
> I expect.
>
> ...
>
>
> The suggestions are from addressbook. You can try searching directly
> there to see what should be shown.
> If addressbook finds a match, we might have to start debugging.
Hi, Nathan.
Addressbook search works ok. What's the proper way to debug this?
Thanks is advance.
–
----------------------------------------------------------------------|
http://counter.li.org info: Linux user: 92390 - Linux machine: 39301 |
Oscar Manuel Gómez Senovilla - omgsATescomposlinux.org |
GPG Key at http://keyserver.pgp.com |
----------------------------------------------------------------------|
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers