use a wrapper on a different url for sending mail to be able to select a different fpm pool

This commit is contained in:
Ralf Becker 2014-11-21 13:37:49 +00:00
parent 89f8c87cd1
commit f00530f7cb
2 changed files with 18 additions and 0 deletions

View File

@ -3196,4 +3196,20 @@ class mail_compose
$response->error(implode(',',$results['failed'])); $response->error(implode(',',$results['failed']));
} }
} }
/**
* Wrapper for etemplate_new::ajax_process_content to be able to identify send request to select different fpm pool
*
* @param string $etemplate_exec_id
* @param array $content
* @param boolean $no_validation
* @throws egw_exception_wrong_parameter
*/
static public function ajax_send($etemplate_exec_id, array $content, $no_validation)
{
// setting menuaction is required as it triggers different behavior eg. in egw_framework::window_close()
$_GET['menuaction'] = 'etemplate_new::ajax_process_content';
return etemplate_new::ajax_process_content($etemplate_exec_id, $content, $no_validation);
}
} }

View File

@ -174,6 +174,8 @@ app.classes.mail = AppJS.extend(
); );
break; break;
case 'mail.compose': case 'mail.compose':
// use a wrapper on a different url to be able to use a different fpm pool
et2.menuaction = 'mail_compose::ajax_send';
var that = this; var that = this;
this.mail_isMainWindow = false; this.mail_isMainWindow = false;
this.compose_fieldExpander_init(); this.compose_fieldExpander_init();