Changeset View
Changeset View
Standalone View
Standalone View
core/units/email_templates/email_template_eh.php
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
if ( $this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1) ) { | if ( $this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1) ) { | ||||
$event->status = kEvent::erFAIL; | $event->status = kEvent::erFAIL; | ||||
return; | return; | ||||
} | } | ||||
$items_info = $this->Application->GetVar('u'); | $items_info = $this->Application->GetVar('u'); | ||||
if ( $items_info ) { | if ( $items_info ) { | ||||
Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.NoLineBeforeOpen: No blank line found before "if" control structure | |||||
list ($user_id, ) = each($items_info); | $user_id = key($items_info); | ||||
$ids = $this->Application->RecallVar($event->getPrefixSpecial() . '_selected_ids'); | $ids = $this->Application->RecallVar($event->getPrefixSpecial() . '_selected_ids'); | ||||
$id_field = $this->Application->getUnitOption($event->Prefix, 'IDField'); | $id_field = $this->Application->getUnitOption($event->Prefix, 'IDField'); | ||||
$table_name = $this->Application->getUnitOption($event->Prefix, 'TableName'); | $table_name = $this->Application->getUnitOption($event->Prefix, 'TableName'); | ||||
$sql = 'UPDATE ' . $table_name . ' | $sql = 'UPDATE ' . $table_name . ' | ||||
SET ' . $this->Application->RecallVar('dst_field') . ' = ' . $user_id . ' | SET ' . $this->Application->RecallVar('dst_field') . ' = ' . $user_id . ' | ||||
WHERE ' . $id_field . ' IN (' . $ids . ')'; | WHERE ' . $id_field . ' IN (' . $ids . ')'; | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |
No blank line found before "if" control structure