43 if (empty($taskInfo[
'email'])) {
44 if ($currentSchedulerModuleAction->equals(
Action::ADD)) {
46 $taskInfo[
'email'] =
$GLOBALS[
'BE_USER']->user[
'email'];
47 } elseif ($currentSchedulerModuleAction->equals(
Action::EDIT)) {
49 $taskInfo[
'email'] = $task->email;
52 $taskInfo[
'email'] =
'';
56 $fieldID =
'task_email';
57 $fieldCode =
'<input type="text" class="form-control" name="tx_scheduler[email]" id="' . $fieldID .
'" value="' . htmlspecialchars($taskInfo[
'email']) .
'" size="30">';
58 $additionalFields = [];
59 $additionalFields[$fieldID] = [
61 'label' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.email',
62 'cshKey' =>
'_MOD_system_txschedulerM1',
63 'cshLabel' => $fieldID
65 return $additionalFields;
78 $submittedData[
'email'] = trim($submittedData[
'email']);
79 if (empty($submittedData[
'email'])) {
81 $GLOBALS[
'LANG']->sL(
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.noEmail'),
100 $task->email = $submittedData[
'email'];