Incorrect default autocomplete path

psynaptic - October 15, 2009 - 11:55
Project:API
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

The use of base_path() and url() in the default value of apiAutoCompletePath causes the autocomplete to fail until a JSON file is generated. This problem isn't that serious as it only affects the availability of autocomplete before those JSON files are created (when api_shutdown is called and files need to be removed from the index).

I have tested the patch in both bare root (http://example.com/) and subdomain to make sure it works (http://example.com/api/). Autocomplete now works before those files are generated.

AttachmentSize
api.autocomplete.url_.patch798 bytes

#1

psynaptic - October 15, 2009 - 11:56

Sorry, I meant subdirectory.

#2

psynaptic - November 6, 2009 - 17:10
Status:needs review» closed

This is wrong actually and caused a bug on drupalcontrib.org. Doh.

 
 

Drupal is a registered trademark of Dries Buytaert.