I am running Entity Reference and Content Access on my site.. In order for non-superusers to be able to create content I had to apply the following patch to entity.inc..
http://drupal.org/node/1325628#comment-5416226
The issue is that with this patch I am not able to reference users with entity reference because it gives the following error..
Recoverable fatal error: Method DatabaseCondition::__toString() must return a string value in EntityReferenceHandler_user->entityFieldQueryAlter() (line 289 of C:\wamp\www\2012-01-12\sites\all\modules\entityreference\handler\base.inc).
Reverting to the unpatched entity.inc file gets user references working but obviously returns the first issue..
Anyone have any ideas?
Thanks..
Comment | File | Size | Author |
---|---|---|---|
#8 | 1410306-entityreference-robust-query-alteration.patch | 2.06 KB | Damien Tournoud |
#2 | forum_ui_imporvements1.patch | 904 bytes | indrek02 |
Comments
Comment #1
shadysamir CreditAttribution: shadysamir commentedThe error appears for me on latest dev (not sure if patch mentioned above has been committed) when I try to fill a user reference field.
Comment #2
indrek02 CreditAttribution: indrek02 commentedBug still exists in rc3.
Made a patch that will prevent a fatal error.
Not sure if this is the correct fix for it.
Comment #3
cangeceiro CreditAttribution: cangeceiro commentedI also got this error message with entityreference out of the box. Patch above resolved the issue.
Comment #5
mrfelton CreditAttribution: mrfelton commentedPatch stops the error, but doesn't make the user reference field work.
Comment #6
mrfelton CreditAttribution: mrfelton commentedIn my case, editing and resaving the broken entityreference field resolved the issue. I think the field was created on a much earlier version of entityreference and exported to a feature. The code in the feature was out of sync with what the latest version of entityreference expects to see.
Comment #7
JohnnyX CreditAttribution: JohnnyX commentedMaybe also a issue with user reference...
autocomplete should not show
1) "guest" (autocomplete deluxe widget)
2) "guest" and "none" (chosen widget)
"guest" und "none" shouldn't be added to the selected referenced users. Guest will also be saved.
Or should it filtered an other way...?
Comment #8
Damien Tournoud CreditAttribution: Damien Tournoud commentedI merged the attached in 7.x-1.x. This should fix the error displayed here.