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 312 in facetapi/plugins/facetapi/adapter.inc tries to use $parts[1] before checking for $parts[1] on the next line. Check should come first.
This:
$filter = $field_alias . ':' . $parts[1]; // @see https://www.drupal.org/node/1884152
if (isset($parts[1]) && isset($enabled_aliases[$field_alias])) {
Should be:
if (isset($parts[1]) && isset($enabled_aliases[$field_alias])) {
$filter = $field_alias . ':' . $parts[1]; // @see https://www.drupal.org/node/1884152
Comment | File | Size | Author |
---|---|---|---|
#3 | notice_undefined-2378693-3.patch | 782 bytes | sylus |
Comments
Comment #1
darkodev CreditAttribution: darkodev commentedComment #2
darkodev CreditAttribution: darkodev commentedComment #3
sylus CreditAttribution: sylus commentedAttaching patch.
Comment #4
darkodev CreditAttribution: darkodev commentedComment #5
darkodev CreditAttribution: darkodev commentedThanks, @sylus!
Comment #6
candelas CreditAttribution: candelas commentedPatch in #3 works. Thanks @sylus ;)
Comment #7
DamienMcKenna+1 for the patch, and it still applies against the latest 7.x-1.x codebase.
Comment #8
das-peter CreditAttribution: das-peter at Cando commentedStill applies and helps to reduce the noise in the logs.
Let's get this in!
Comment #9
pau1_m CreditAttribution: pau1_m commented+1 for patch #3
Comment #10
jbiechele CreditAttribution: jbiechele commented+1 for patch #3
Comment #11
krystianbuczak CreditAttribution: krystianbuczak commented+1 for patch #3
Comment #12
darkodev CreditAttribution: darkodev commented+1 for patch in #3
Comment #13
candelas CreditAttribution: candelas as a volunteer commented+1 for patch in #3
Comment #14
candelas CreditAttribution: candelas as a volunteer commentedBy the way, they are seeking for a new maintainer. I have not the level, but maybe someone here... :)
Comment #15
BLOK-Man CreditAttribution: BLOK-Man commentedthanks patch #3
Comment #17
drummLooks good! Committed.
Comment #18
rovoAlso was having this issue but now resolved. Thank you!
FYI for anyone else,
drush dl facetapi --dev
, pulls the latest 7.x-2.x-dev that doesn't have this patch.Comment #20
darkodev CreditAttribution: darkodev commentedCan we expect a 7.x-1.6 with this rolled in?
Comment #21
darkodev CreditAttribution: darkodev commentedRTBC +