Hi,

in D5, the "Popups Reference" module creates a new target node through an CCK node reference field, but cleares source node completely; anything that has been edited inside the (source) node before clicking on "Popups: Add & Reference" is lost - including the node reference. To (re-) add it, the (source) node has to be edited again.

Maybe this is of importance: I'm running jQuery Update 5.x-2.0.

Thanks & greetings, -asb

Comments

drawk’s picture

I've noticed the same, but in the 6.x version. When logged in as user #1, it works fine and I get the confirmation that the new node was created in another popup which when closed doesn't wipe out the original form. But when as any other use, the confirmation message is displayed after a full page reload which wipes out the original form contents.

digi24’s picture

Unfortunately I can confirm the behaviour described by drawk.

drawk’s picture

On two sites on which I have been having this problem, the problem seems to have corrected itself on the first. I am not sure what might have changed that made the problem go away.

On the second site, which is still experiencing the issue described here, I have noticed by watching the Firebug console that while logged in as user #1 (site admin) everything works as it should but when logged in as another user there is a javascript error that occurs via jQuery when you click the "Add" link. That seems to prevent the rest of popups reference js from running.

I'm not sure what the error really entails because the jQuery library is packed, so the error isn't too descriptive. I'll have to swap in an unpacked version on a dev environment and try to trace it. Another option would be to disable all other contrib modules and see if the problem still persists. If not, we might be able to track it down to an incompatibility with a particular module.

digi24’s picture

Yes, it is an jQuery thing. In my case it has been caused in combination with the vertical_tabs module. I identified the critical function in the other module and popups reference works fine now.

drawk’s picture

digi24, that's interesting as the site where I've continued to have the problem does in fact use vertical tabs module. Could you explain which was the 'critical function' in the vertical_tabs module?

Thanks

digi24’s picture

@drawk:
My posting was here: #575566: Drupal.behaviors.verticalTabsReload when no tabs present, I disabled the function first, but DeFr pointed me to a better solution.

himerus’s picture

Version: 5.x-1.0-beta2 » 6.x-1.0

I am confirming that this also happens with the img_assist module enabled.

I use vertical tabs on every D6 site, and have not noticed it with vertical tabs enabled.

asb’s picture

Version: 6.x-1.0 » 5.x-1.0-beta2

Please don't mix releases. Changing back to 5.x-1.0-beta2.