luya-module-admin icon indicating copy to clipboard operation
luya-module-admin copied to clipboard

Active Selection should provide origin array with elemnts or ActiveQuery

Open nadar opened this issue 4 years ago • 0 comments

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);

nadar avatar Oct 14 '21 07:10 nadar