Devel page execution message gets included into search field when opening existing link.
Linkit echos existing link and then die, instead we could return json with drupal_json_output(). Which will solve this issue.
See attached patch
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | linkit.1050980.D6.patch | 844 bytes | anon |
| #5 | linkit.1050980.D7.patch | 858 bytes | anon |
| linkit.returnjson.patch | 378 bytes | vikfroberg |
Comments
Comment #1
anonFirst its need a review, then if it ok, we will patch this to 6.X =)
Comment #2
anonMe and vikfroberg has a better solution to this. Unfortunately I forgot the patch at work.
Comment #3
anonComment #4
anonAfter some testing my conclusion is that return the respone in JSON format solves this, but to send it as text/plain seems more correct.
Comment #5
anonDevel tell us that if the page output any Content-type http headers in this array
$formats = array('xml', 'javascript', 'json', 'plain', 'image', 'application', 'csv', 'x-comma-separated-values');It will not show the "devel footer".
So if we add the header in this (linkit_search_styled_link) we are all clear.
I have commited this two patches.