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.
Problem
Checking with isset()
a property of an object that extends FeedsConfigurable always fails.
Description
I need this because we have FeedsSource object wrapped by default entity wrapper. During entity unwrapping we need to know whether our parameter (in my case feeds source id) is set or not. See #1593902: How to specify that a rule is for a certain feed import? for more details.
Reason
isset
calling always returns FALSE because we don't have magic method __isset()
implemented.
Solution
Just implement it.
I will provide a patch soon.
Comment | File | Size | Author |
---|---|---|---|
#1 | added_magic_isset_method-1742740-1.patch | 568 bytes | PatchRanger |
Comments
Comment #1
PatchRanger CreditAttribution: PatchRanger commentedHere we are.
Please review the patch.
Comment #2
twistor CreditAttribution: twistor commented7.x http://drupalcode.org/project/feeds.git/commit/a921c43
Comment #3
twistor CreditAttribution: twistor commented6.x http://drupalcode.org/project/feeds.git/commit/ef41a0a