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.
Line 1027 of entityreference.module reads:
if ($entity_id !== 'NULL') {
I haven't seen any bugs caused by it, but is that really what you meant? Why would you want to check that $entity_id does not contain the string "NULL"? Or should it have been if ($entity_id !== NULL) {
instead?
Comment | File | Size | Author |
---|---|---|---|
#5 | entityreference-2634768-5.patch | 595 bytes | Snehal Brahmbhatt |
| |||
#3 | entityreference-2634768.patch | 601 bytes | berdyshev |
|
Comments
Comment #2
marcvangendComment #3
berdyshev CreditAttribution: berdyshev at AMgrade commentedyes, but here is some sort of bug, because in cases (i.e. autocomplete in node form widget) when this $entity_id is taken from url arguments, its value will be in lowercase. Patch is attached
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch in #3 to entityreference.module does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.
Comment #5
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commented@Chris Matthews, Please review my attached patch, I created it for Entity reference 7.x-1.x-dev version as per requirement mentioned in #4. Hope this will help you!..
Thanks!..