Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
drawk CreditAttribution: drawk commentedI'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.
Comment #2
digi24 CreditAttribution: digi24 commentedUnfortunately I can confirm the behaviour described by drawk.
Comment #3
drawk CreditAttribution: drawk commentedOn 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.
Comment #4
digi24 CreditAttribution: digi24 commentedYes, 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.
Comment #5
drawk CreditAttribution: drawk commenteddigi24, 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
Comment #6
digi24 CreditAttribution: digi24 commented@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.
Comment #7
himerus CreditAttribution: himerus commentedI 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.
Comment #8
asb CreditAttribution: asb commentedPlease don't mix releases. Changing back to 5.x-1.0-beta2.