Index: branches/5.3.x/core/units/scheduled_tasks/scheduled_task_eh.php =================================================================== diff -u -N -r15574 -r15698 --- branches/5.3.x/core/units/scheduled_tasks/scheduled_task_eh.php (.../scheduled_task_eh.php) (revision 15574) +++ branches/5.3.x/core/units/scheduled_tasks/scheduled_task_eh.php (.../scheduled_task_eh.php) (revision 15698) @@ -1,6 +1,6 @@ getEventParam('ids'); if ( $ids ) { - $id_field = $this->Application->getUnitOption($event->Prefix, 'IDField'); - $table_name = $this->Application->getUnitOption($event->Prefix, 'TableName'); + $config = $event->getUnitConfig(); + $id_field = $config->getIDField(); $sql = 'SELECT ' . $id_field . ' - FROM ' . $table_name . ' + FROM ' . $config->getTableName() . ' WHERE ' . $id_field . ' IN (' . implode(',', $ids) . ') AND Type <> ' . ScheduledTask::TYPE_SYSTEM; $event->setEventParam('ids', $this->Conn->GetCol($sql)); }