mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
listsNested applies orderByNested() automatically to prevent confusion
This commit is contained in:
parent
5690d9e391
commit
05017dc559
@ -109,7 +109,7 @@ class Relation extends FormWidgetBase
|
||||
}
|
||||
|
||||
if ($relatedObj->isClassExtendedWith('October.Rain.Database.Behaviors.NestedSetModel'))
|
||||
$field->options = $query->orderByNested()->listsNested($this->nameColumn, $relatedObj->getKeyName());
|
||||
$field->options = $query->listsNested($this->nameColumn, $relatedObj->getKeyName());
|
||||
else
|
||||
$field->options = $query->lists($this->nameColumn, $relatedObj->getKeyName());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user