- Patch #871298 by plach: comment language not saved.

merge-requests/26/head
Dries Buytaert 2010-08-02 11:26:20 +00:00
parent 92a897533b
commit 6f055df1ed
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ function locale_url_outbound_alter(&$path, &$options, $original_path) {
function locale_form_comment_form_alter(&$form, &$form_state, $form_id) {
// If a content type has multilingual support we set the content language as
// comment language.
if (empty($form['language']['#value']) && locale_multilingual_node_type($form['#node']->type)) {
if ($form['language']['#value'] == LANGUAGE_NONE && locale_multilingual_node_type($form['#node']->type)) {
global $language_content;
$form['language']['#value'] = $language_content->language;
}