-Create a nodereference field using autocomplete on a content type.
-Create the content type and in that field type and find a reference and select any one in the dropdown.
-Now in the nid field, change the number and submit so the match errors.
-The message "%name : Title mismatch. Please check your selection." displays.

On line 344, the following should be changed

form_set_error($error_field, t('%name : Title mismatch. Please check your selection.'), array('%name' => t($field['widget']['label'])));

the t() is closed prematurely and I think the second t() is unnecessary as it is an input field and cannot be used to translate and is redundant once the first t() is closed properly. I suggest changing it to

form_set_error($error_field, t('%name : Title mismatch. Please check your selection.', array('%name' => $field['widget']['label'])));

Comments

yched’s picture

Status: Active » Fixed

right, fixed in 5.x-1.x. Thx.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Gerald Mengisen’s picture

Just FYI for anybody who stumbles upon this error message and has no idea what it means (same was the case for me until now):

I've updated the titles of CCK nodes with an SQL script, but wasn't aware that the titles are also stored in the revisions table. Therefore I got the error above every time I used the node reference field and tried to save the updates.

So when you use
UPDATE content_type_save_address sa
JOIN node n
ON n.nid = sa.nid
SET n.title = CONCAT(sa.field_lastname_value,' ',sa.field_firstname_value);

make sure you also use
UPDATE node_revisions nr
JOIN node n
ON n.vid = nr.vid
SET nr.title = n.title
WHERE n.title <> nr.title;

I no longer get the error above.
P.S.: I'm adding this comment to this bug report because it is the only hit I get in Google for this error.

5t4rdu5t’s picture

GeraldMengisen, thanks a lot for your post!

It was precisely what I was needing and it probably saved me hours of research. Very useful.

jimurl’s picture

It was also exactly what I need to know, Gerald, thanks!

kamranzafar’s picture

Thanks Gerald for your help.