Opening the settings dialog for the node_links pane results in the following error:
Notice: Undefined variable: node in ctools_node_links_content_type_edit_form() (line 89 of plugins/content_types/node_context/node_links.inc).

CommentFileSizeAuthor
#2 ctools-n2469569-1.patch1.62 KBdamienmckenna

Comments

damienmckenna’s picture

There is no $node object in that function. Furthermore, it's trying to reference 'panel_identifier', but the only references in the entire module are in that file. Additionally, there aren't any references to 'panel_identifier' in the Panels module, so I really don't know what this would be used for. Should the $form['identifier'] field be removed from the form?

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.62 KB

This probably is not the correct way of handling the problem.

maximpodorov’s picture

Status: Needs review » Reviewed & tested by the community

I suggest to remove this also. This is not used anywhere.

maximpodorov’s picture

@japerry, could you commit this as well?

damienmckenna’s picture

japerry’s picture

Status: Reviewed & tested by the community » Needs work

Well if "This probably is not the correct way of handling the problem." -- then I'm marking this needs work ;)

damienmckenna’s picture

Status: Needs work » Needs review

@japerry: I had been thinking that there was probably a reason that the option was left in, but I couldn't see it nor could I identify anywhere else the code might be used. Maybe merlinofchaos might have an idea why the code was there in the first place?

damienmckenna’s picture

Moving this to the v7.x-1.10 release plan.

damienmckenna’s picture

This didn't get added to 7.x-1.10.

chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 4 year old patch to node_links.inc does not apply to the latest ctools 7.x-1.x-dev.

Checking patch plugins/content_types/node_context/node_links.inc...
Hunk #1 succeeded at 17 (offset 2 lines).
Hunk #2 succeeded at 41 (offset 2 lines).
Hunk #3 succeeded at 79 (offset 2 lines).
error: while searching for:
    $form_state['conf'][$key] = $form_state['values'][$key];
  }
}

function ctools_node_links_content_type_admin_title($subtype, $conf, $context) {
  return t('"@s" links', array('@s' => $context->identifier));
}

error: patch failed: plugins/content_types/node_context/node_links.inc:98
error: plugins/content_types/node_context/node_links.inc: patch does not apply
japerry’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.