Issue #2009002 by Floydm: Replace theme() with drupal_render() in edit module.

8.0.x
Alex Pott 2013-06-09 17:52:52 +01:00
parent 4370959d5e
commit 94e5ba411b
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ class EditController extends ContainerAware {
$errors = form_get_errors();
if (count($errors)) {
$response->addCommand(new FieldFormValidationErrorsCommand(theme('status_messages')));
$status_messages = array(
'#theme' => 'status_messages'
);
$response->addCommand(new FieldFormValidationErrorsCommand(drupal_render($status_messages)));
}
}