Bug #28245

Autocomplete Widget modifies query with every request

Added by Bastian Waidelich about 4 years ago. Updated about 4 years ago.

Status:Resolved Start date:2011-07-15
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:Widgets
Target version:-
Has patch:No Affected Flow version:

Description

The autocomplete widget changes the query by adding constraints in the autocompleteAction of the widget controller.
But as the query is passed by reference this adds new constraints with every request instead of replacing the other ones.
Besides the amount of returned objects should be configurable (limit).

Associated revisions

Revision 3145bf0d
Added by Bastian Waidelich about 4 years ago

[BUGFIX] Original Query is modified with every autocomplete request

In the autocompleteAction of the Autocomplete widget constraints are
added to the query that is fetched from $objects. As this is done by
reference, new constraints are added to the same query again and again.

Besides this change adds a new configuration "limit" that defaults to 10.

Change-Id: I169da665f4b2a8561c1feac10ac79739b4a98754
Resolves: #28245

History

#1 Updated by Mr. Hudson about 4 years ago

Patch set 2 of change I169da665f4b2a8561c1feac10ac79739b4a98754 has been pushed to the review server.
It is available at http://review.typo3.org/3394

#2 Updated by Bastian Waidelich about 4 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF