luya-module-admin
luya-module-admin copied to clipboard
Active Selection should provide origin array with elemnts or ActiveQuery
Sometimes it could be helpfull to have the original selection, therefor it would be better to either all $items as optional array argument or instead of findAll() just a find():
$items = $class::findAll(Yii::$app->request->getBodyParam('ids', [0]));
for bc reasons maybe a property $selectedIds in $activeSelect object.
$object->selecetedIds = $ids; return $object->handle($items);