Bug #55142

Use getPropertyPath in autocomplete widget

Added by Alexander Stehlik over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Widgets
Target version:
-
Start date:
2014-01-19
Due date:
% Done:

100%

Estimated time:
Has patch:
No

Description

Currently the AutocompleteController uses ObjectAccess::getProperty() for retrieving the property that was searched for in the query.

The query is currently flexible enough to support sub-properties to be searched. An example: if you have a User object you could configure an autocomplete widget that searches for name.fullName. The query will execute that search without problems and find the users.

But as soon as the results are build the widget crashes because it can not access the property.

A simple fix that should not cause any side effects would be to use ObjectAccess::getPropertyPath() instead.

Also available in: Atom PDF