$delete = TRUE; } else { $delete = FALSE; } if (DEMO_MODE == FALSE and ($permission->Check('schedule', 'delete') or $permission->Check('schedule', 'delete_own') or $permission->Check('schedule', 'delete_child'))) { $slf = new ScheduleListFactory(); $slf->StartTransaction(); $slf->getByCompanyIdAndId($current_company->getID(), $ids); if ($slf->getRecordCount() > 0) { foreach ($slf as $s_obj) { $s_obj->setDeleted(TRUE); $s_obj->Save(); } } //$plf->FailTransaction(); $slf->CommitTransaction(); } Redirect::Page(URLBuilder::getURL(array('saved_search_id' => $saved_search_id), 'ScheduleList.php')); break; case 'search_form_delete': case 'search_form_update': case 'search_form_save': case 'search_form_clear': case 'search_form_search': Debug::Text('Action: ' . $action, __FILE__, __LINE__, __METHOD__, 10); $saved_search_id = UserGenericDataFactory::searchFormDataHandler($action, $filter_data, URLBuilder::getURL(NULL, 'ScheduleList.php')); default: BreadCrumb::setCrumb($title); extract(UserGenericDataFactory::getSearchFormData($saved_search_id, $sort_column)); Debug::Text('Sort Column: ' . $sort_column, __FILE__, __LINE__, __METHOD__, 10); Debug::Text('Saved Search ID: ' . $saved_search_id, __FILE__, __LINE__, __METHOD__, 10);