ENHANCEMENT Calling augmentSQL() on decorators in DataObject::get(), which is necessary (among others) to limit ContentController->getMenu() with Translatable enabled to the currently active language. Was previously just implemented in DataObject::get_one()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@69954 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-01-10 07:52:32 +00:00 committed by Sam Minnee
parent 464cd2c129
commit 53e2a035f9

View File

@ -2226,6 +2226,9 @@ class DataObject extends ViewableData implements DataObjectInterface,i18nEntityP
}
$query = $this->extendedSQL($filter, $sort, $limit, $join);
$this->extend('augmentSQL', $query);
$records = $query->execute();
$ret = $this->buildDataObjectSet($records, $containerClass, $query, $this->class);