}
 }
 if (($ids = $lAdmin->GroupAction()) && $userIsAdmin) {
     if ($_REQUEST['action_target'] == 'selected') {
         // get all ids if they were not specified (user choice was "for all")
         $ids = Helper::getIdsByFilter($listParams['filter']);
     }
     @set_time_limit(0);
     foreach ($ids as $id) {
         if (!($id = intval($id))) {
             continue;
         }
         if ($_REQUEST['action'] == 'delete') {
             $DB->StartTransaction();
             try {
                 $res = Helper::delete($id);
                 if (!$res['success']) {
                     throw new Main\SystemException(Loc::getMessage('SALE_LOCATION_L_ITEM') . ' ' . $id . ' : ' . implode('<br />', $res['errors']));
                 }
                 $DB->Commit();
             } catch (Main\SystemException $e) {
                 $lAdmin->AddGroupError(Loc::getMessage('SALE_LOCATION_L_ITEM_DELETE_ERROR') . ": <br /><br />" . $e->getMessage(), $id);
                 $DB->Rollback();
             }
         }
     }
 }
 $adminResult = Helper::getList($listParams, $sTableID);
 $adminResult->NavStart();
 $lAdmin->NavText($adminResult->GetNavPrint(Loc::getMessage('SALE_LOCATION_L_PAGES'), true));
 // do not relocate the call relative to DisplayList(), or you`ll catch a strange nav bar disapper bug