In the set_items method $array is undefined before this point:

if ($this->options['field_api_classes']) {
      // Make a copy.
      $array = $render_array;
      return array(array('rendered' => drupal_render($render_array)));
    }

So what is the point assigning $render_array to $array? Isn't this just waste of time?

CommentFileSizeAuthor
#3 Img.png32.48 KBrenatog
#2 views-2834290.patch523 byteslarsmw
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larsmw created an issue. See original summary.

larsmw’s picture

FileSize
523 bytes
renatog’s picture

Status: Active » Reviewed & tested by the community
FileSize
32.48 KB

Hi, guys.

I applied the patch and works good for me.

Really make sense @larsmw.

Thank you very much for your contribution.

Regards.

renatog’s picture

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

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