Problem with the scheduled reports , I have problems with the module of the scheduled reports, the errors that I see are indefinite indexes:
aor_email_to_list
email to write
in the php file emailRecipients.php
I want to know if someone has had the same problem and how to solve it.
function display_email_lines($focus, $field, $value, $view)
{
global $app_list_strings;
$params = unserialize(base64_decode($value));
if ($view == 'EditView') {
$html = '<script src="modules/AOR_Scheduled_Reports/emailRecipients.js"></script>';
$html .= '<input type="hidden" name="aor_email_type_list" id="aor_email_type_list" value="' . get_select_options_with_id($app_list_strings['aor_email_type_list'], '') . '">
<input type="hidden" name="aor_email_to_list" id="aor_email_to_list" value="' . get_select_options_with_id($app_list_strings['aor_email_to_list'], '') . '">';
$html .= '<button type="button" onclick="add_emailLine()"><img src="' . SugarThemeRegistry::current()->getImageURL('id-ff-add.png') . '"></button>';
$html .= '<table id="emailLine_table" width="100%"></table>';
$html .= "<script>";
if (isset($params['email_target_type'])) {
foreach ($params['email_target_type'] as $key => $field) {
if (is_array($params['email'][$key])) {
$params['email'][$key] = json_encode($params['email'][$key]);
}
$html .= "load_emailline('" . $params['email_to_type'][$key] . "','" . $params['email_target_type'][$key] . "','" . $params['email'][$key] . "');";
}
}
$html .= "</script>";
return $html;
}
SuiteCRM: 7.10.5
Sugar version: 6.5.25
Using the IIS Administrator
Operating system: Windows Server 2012 R2
php: 5.6.36