Steps to reproduce

  1. Edit (or create) a node including simple text field(s).
  2. At least for one text field, have a "multi" segment populated
  3. Force a validation error by emptying the (required) title content
  4. Click "Submit": then the submit process aborts, with an error message

Problem

At this stage, the "multi" segment content has been replaced by the raw text of the current language, i.e.:

  • say the original segment was
    [multi][en]The English text[other]The "other-language" text[/multi]
  • say the current language was "en"
  • now the segment only contains The English text

Comments

cfreed’s picture

Title: Segment content replaced by raw text of the current language when submit-error » Segment replaced by current language only if submit-error while adding new node
Assigned: Unassigned » cfreed
Status: Needs review » Fixed

In fact the issue happens only when adding new node (ok when editing) --> modified title accordingly.

Multilang looks at the current URL in order to NOT work when in editing process (so the whole content is showed to the user). Till now it looked at URL for:

  • admin/structure/block
  • node/\d+/edit

Must also look for:

  • node/add

Fixed. Will be included in 7.x-2.0.

cfreed’s picture

Title: Segment replaced by current language only if submit-error while adding new node » Segment replaced by only current language if submit-error while adding new node
cfreed’s picture

Status: Fixed » Closed (fixed)