line 123 of sites/all/modules/ctools/views_content/plugins/content_types/views.inc views_content_views_content_type_render()

Whats interesting is below on line 132 we check to make sure $panel_args is an array

  if ($conf['panel_args'] && is_array($panel_args)) {
    $args = array_merge($panel_args, $args);
  }

Related issue as it touches the same bit of code: #764006: PHP error when viewing panel

CommentFileSizeAuthor
#1 ctools-1334894-1.patch719 bytesmikeytown2

Comments

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new719 bytes
japerry’s picture

Issue summary: View changes
Status: Needs review » Needs work
+++ b/views_content/plugins/content_types/views.inc
@@ -120,9 +120,11 @@ function views_content_views_content_type_render($subtype, $conf, $panel_args, $
+        $args = str_replace("@$id", $arg, $args);

Wouldn't this overwrite args if there is more than one key?

mikeytown2’s picture

Yep and that's what it already does; overwrite $args in multiple places
http://cgit.drupalcode.org/ctools/tree/views_content/plugins/content_typ...

Not sure on the direction you want to take it. I was going for less php warnings.

japerry’s picture

Status: Needs work » Fixed

Indeed, I see what you mean. Fixed!

  • japerry committed 39800fc on 6.x-1.x authored by mikeytown2
    Issue #1334894 by mikeytown2: Warning: Invalid argument supplied for...

Status: Fixed » Closed (fixed)

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