This issue here: https://www.drupal.org/node/1869132

Inside smartqueue_taxonomy_nodequeue_subqueues() introduces the following code block:

if (!empty($field_names) && $queue->use_parents_all) {
    // Replace taxonomy IDs with all their parents'.
    foreach ($field_names as $field_name => &$tids) {
      $tids = smartqueue_taxonomy_get_children($tids);
    }
  }

$queue->use_parents_all does not have a !empty()around the property access, so throws an undefined property error where this has not been set on the queue.

The code block above, for $queue->use_parents does correctly have a !empty() around the property access, so this patch will just keep in line with that.

CommentFileSizeAuthor
#2 edit_notice_undefined-2786901-1.patch519 bytesrossb89

Comments

rossb89 created an issue. See original summary.

rossb89’s picture

StatusFileSize
new519 bytes
rossb89’s picture

Status: Active » Needs review

  • fizk committed c92f411 on 7.x-2.x authored by rossb89
    Issue #2786901 by rossb89: Notice: Undefined property: stdClass::$...
fizk’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.