When locale is enabled and we have a node with multilingual support enabled comments should be assigned the current content language, but actually the value stored is always LANGUAGE_NONE. This was probably introduced by #635094: Unify "language neutral" language codes.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plach’s picture

Status: Active » Needs review
Issue tags: +Quick fix
FileSize
898 bytes

Easy fix. Probably needs tests.

Dries’s picture

Priority: Critical » Normal
Status: Needs review » Needs work
Issue tags: -Quick fix +Needs tests

Committed to CVS HEAD. Moving to 'needs works' so we can add tests.

plach’s picture

Title: Comment language not saved » Improve comment language test coverage

retitling

plach’s picture

Status: Needs work » Needs review
FileSize
5.48 KB

Here are the tests.

plach’s picture

Category: bug » task
plach’s picture

Here is a rerolled patch.

The test-only version reverts the patch committed in #1 and is supposed to fail to show that the test captures the issue correctly.

Status: Needs review » Needs work

The last submitted patch, comment_language-871298-6-test.patch, failed testing.

plach’s picture

Status: Needs work » Reviewed & tested by the community

The green patch in #6 should be ready to go.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Lookgs good. Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.