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.
Dear Dev:
I found a issue for entity reference popup.
A problem that when you upload the image>1, the OG audience value lost. I mean that i use "entityreference prepopulate" set OG audience values automatically, but, if i upload two images, the OG audience values lost. if i upload the only one image, set OG audience value successfully.
Comment | File | Size | Author |
---|---|---|---|
#1 | Screenshot from 2013-04-18 15:21:31.png | 9.44 KB | alesr |
#1 | Screenshot from 2013-04-18 15:21:55.png | 6.02 KB | alesr |
#1 | Screenshot from 2013-04-18 15:22:16.png | 17.07 KB | alesr |
#1 | Screenshot from 2013-04-18 15:22:35.png | 39.94 KB | alesr |
Comments
Comment #1
alesr CreditAttribution: alesr commentedI have this issue too and it does't not only happen when an image is uploaded inside the form, but every time a form is updated. For example this also happens if you're using Inline Entity Form and add new entities into a (node/add/*) form.
Here is a graphical replication of this issue:
Visiting node/add/response (empty form part). Two entityreference fields that are on top are hidden with entityrefernce prepopulate module.
Photo uploaded
Clicked "Save"
... and here is the form error with unselected value (the value is still set up in url - works ok if I don't upload an image!)
and also both fields are now exposed to the user (that shouldn't view them!)
Here is the entityreference prepopulate settings for the first field (same for the second one)
Because this is a big security issue I cannot use this module and have to choose the "ugly" solution with hook_form_alter.
@Amitaibu, do you have a clue why this happens? I rather help fixing this issue then going for the ugly hook_form_alter solution (I used for OG 7.x-1.x btw).
Comment #2
amitaibu@alesr ,
I have re-tested, and it works fine for me with the latest dev (i.e. after ER-prepopupatle cleanup issue #1958800: AJAX causes entityreference_prepopulate_get_values_from_url to fail)
Comment #3
alesr CreditAttribution: alesr commentedFixed after Entityreference Prepopulate 7.x-1.3 and OG 7.x-2.2 update.
Thanks.
Comment #4
yutaolife CreditAttribution: yutaolife commentedif possibly, would you please give me a patch firstly?
Comment #5
alesr CreditAttribution: alesr commented@yutaolife, update OG and Entityreference Prepopulate modules to their latest stable releases and it should work.
No patch is needed.
Comment #6.0
(not verified) CreditAttribution: commentedTO Be clear issue description
Comment #7
tanius CreditAttribution: tanius commentedThere was still work going on in the related issue #1958800: AJAX causes entityreference_prepopulate_get_values_from_url to fail until very recently. The final patch is available in the dev version but not yet in a release version. As a quick workaround until then, this works for me:
display:none
.