Index: branches/5.3.x/core/units/scheduled_tasks/scheduled_task_eh.php =================================================================== diff -u -N -r15945 -r16188 --- branches/5.3.x/core/units/scheduled_tasks/scheduled_task_eh.php (.../scheduled_task_eh.php) (revision 15945) +++ branches/5.3.x/core/units/scheduled_tasks/scheduled_task_eh.php (.../scheduled_task_eh.php) (revision 16188) @@ -1,6 +1,6 @@ Array ('self' => 'add|edit'), - 'OnRun' => Array ('self' => 'add|edit'), ); $this->permMapping = array_merge($this->permMapping, $permissions); @@ -178,37 +177,6 @@ } /** - * Runs selected scheduled tasks - * - * @param kEvent $event - */ - function OnRun($event) - { - $ids = $this->StoreSelectedIDs($event); - - if ($ids) { - $object = $event->getObject( Array ('skip_autoload' => true) ); - /* @var $object kDBItem */ - - $where_clause = Array ( - $object->TableName . '.' . $object->IDField . ' IN (' . implode(',', $ids) . ')', - $object->TableName . '.Status = ' . STATUS_ACTIVE, - $object->TableName . '.LastRunStatus <> ' . ScheduledTask::LAST_RUN_RUNNING, - ); - - $sql = $object->GetSelectSQL() . ' - WHERE (' . implode(') AND (', $where_clause) . ')'; - $scheduled_tasks = $this->Conn->Query($sql); - - foreach ($scheduled_tasks as $scheduled_task_data) { - $this->Application->EventManager->runScheduledTask($scheduled_task_data); - } - } - - $this->clearSelectedIDs($event); - } - - /** * Loads schedule from database to virtual fields * * @param kEvent $event @@ -303,4 +271,4 @@ $cron_helper->initUnit($event->Prefix, 'RunSchedule'); } - } \ No newline at end of file + }