I am not sure if I should label this as a bug, feature, or support request. Currently it is possible to add a static argument to an Entity Selection - Mode "View Filter" using the Entity Reference module. However, a patch that was created in 2012 and still works allows token based arguments rather than static arguments:
https://drupal.org/comment/6809760#comment-6809760
Multiple Selects seems to be the best widget for my purpose but sadly is incompatible with the above patch. On the edit form, I am able to add the first reference, but as soon as I "add another item", it seems to refresh and forget the token argument. It clears out the initial selected reference and then shows no visible references selectable for either the first or second items.
As soon as I use a static argument it works, so I am fairly certain there is just a problem with the aformentioned patch.
I would appreciate any help and thanks for all the hard work on this module.
Comment | File | Size | Author |
---|---|---|---|
#5 | entity_selection_views_filter_losing_values-2128821-5.patch | 785 bytes | dobe |
Comments
Comment #1
NWOM CreditAttribution: NWOM commentedComment #2
webadpro CreditAttribution: webadpro commentedCould you provide some steps to reproduce this issue?
Comment #3
dgautsch CreditAttribution: dgautsch commentedI believe the issue the OP is experiencing is unrelated to the patch. I have been able to reproduce this issue without utilizing the aforementioned patch.
Steps to Reproduce
Comment #4
dobe CreditAttribution: dobe commentedI am experiencing the same issue.
Comment #5
dobe CreditAttribution: dobe commentedI was able to solve the issue with the following patch. Which seems to be the same way entityreference module handles this.
Comment #6
webadpro CreditAttribution: webadpro commentedGuys this has already been commited a while back.
Please view: #1570720: Error on node/add after changing taxonomy core select widget to multiple selects widget
Comment #7
dobe CreditAttribution: dobe commentedPlease check the patch again. The problem I was receiving was because we were just passing NULL to the entity_type and entity. It is not the same patch.
Comment #8
dobe CreditAttribution: dobe commentedComment #9
wla_g CreditAttribution: wla_g commentedI've had the same issue and the patch solves it.