Changeset View
Changeset View
Standalone View
Standalone View
core/units/email_templates/email_template_eh.php
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$config = $event->getUnitConfig(); | $config = $event->getUnitConfig(); | ||||
$fields = $config->getFields(); | $fields = $config->getFields(); | ||||
$fields['Module']['options'] = $options; | $fields['Module']['options'] = $options; | ||||
$config->setFields($fields); | $config->setFields($fields); | ||||
if ( $this->Application->GetVar('regional') ) { | if ( $this->Application->isWebRequest() && $this->Application->GetVar('regional') ) { | ||||
$config->setPopulateMlFields(true); | $config->setPopulateMlFields(true); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Prepare temp tables and populate it | * Prepare temp tables and populate it | ||||
* with items selected in the grid | * with items selected in the grid | ||||
* | * | ||||
▲ Show 20 Lines • Show All 418 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
else { | else { | ||||
$this->Application->emailUser($object->GetDBField('TemplateName')); | $this->Application->emailUser($object->GetDBField('TemplateName')); | ||||
} | } | ||||
} | } | ||||
$this->clearSelectedIDs($event); | $this->clearSelectedIDs($event); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |