Example:
- Add referenced node in the popup named "aa bb"
- node is created successfully
- BUT, in the reference field, which is an autocomplete box it says "aa+bb" thus when you click submit it will give an error.

So, a user has to then delete the text that is automatically in the box and retype it to get the correct node to be referenced.

For the Popups API, I used 6.x-1.2-alpha1

Comments

starbow’s picture

Status: Active » Postponed (maintainer needs more info)

I am unable to replicate this issue.
What browser are you using?

OneTwoTait’s picture

Firefox 3

starbow’s picture

Weird, that is the same one I am using.

OneTwoTait’s picture

Note that when I installed Popups API 6.x-2.x-dev, nothing showed up in the autocomplete box after submitting a node. It can still be found but it just wasn't filled in there automatically.

starbow’s picture

That is the expected behavior for 6.x-2.x.

iko’s picture

Hi,
Same issue for me (Drupal 6.10, PAR module version 6.x-1.0-rc1, Firefox3) ; custom characters and punctuation marks do not correctly appear in the nodereference field (the node is actually created) :
- Amp%C3%A8re%2C+Jean-Jacques instead of Ampère, Jean-Jaques

...

e2thex’s picture

I am getting the same behavior

starbow’s picture

Can the people having this problem tell me what version of PHP they are using?
This might be a setrawcookie issue.

OneTwoTait’s picture

I was using PHP 4. We recently copied the installation to a server with php 5.2.8. I used Popups API 6.x-1.2-alpha2 and the result is the same - the incorrect "+"s are still there.

starbow’s picture

Just for the heck of it, can you replace lin 41 of popups_reference.js, which is now this:

        var title = decodeURIComponent(popups_reference_get_cookie_value('PopupRefTitle'));

with this:

  var title = popups_reference_get_cookie_value('PopupRefTitle');
  console.log('title = "' + title +'"');
  title = decodeURIComponent(title);
  console.log('title = "' + title +'"');

And let me know what you get out?

iko’s picture

Hello
I'm using PHP 5.2.8 (localhost)
I added the

console.log('title = "' + title +'"');
  title = decodeURIComponent(title);
  console.log('title = "' + title +'"');

in popups_reference.js (line 41 was already : var title = popups_reference_get_cookie_value('PopupRefTitle');) : it seems to be OK :
- the node is created (with plenty of custom characters as we have in french :-)
- the nodereference field is not automatically filled
- the node title is correctly displayed among the autocomplete suggestions
- the field can be filled, no problem

bravo !

starbow’s picture

Ok, everyone having this issue, please upgrade to RC2.

OneTwoTait’s picture

Upgraded to RC2 and downgraded Popups API to 1.2-Alpha3... Now the popup won't load. It just says "loading" indefinitely.

starbow’s picture

Hmm, haven't had a change to test with alpha3 yet.
Why don't you try 1.2.alpha1.

starbow’s picture

I have rebranded Popups API 1.2-Alpha1 as 1.2, which should be compatible with Popups A&R RC2.

OneTwoTait’s picture

Good. Works now :)

starbow’s picture

Status: Postponed (maintainer needs more info) » Fixed

Yay!

Status: Fixed » Closed (fixed)

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