I have a node based row which will not let me invoke it twice after another with different arguments.

Cannot access empty property in /sites/all/modules/views/modules/node.views.inc on line 670

The solution from Earl was to some code from clone_view to the end of destroy() in view.inc:

      $keys = array('current_display', 'display_handler', 'build_info', 'built', 'executed', 'attachment_before', 'attachment_after', 'field', 'argument', 'filter', 'sort', 'relationship', 'query', 'result', 'inited', 'style_plugin', 'plugin_name', 'exposed_data', 'exposed_input', 'many_to_one_tables');
      foreach ($keys as $key) {
        if (isset($this->$key)) {
          unset($this->$key);
        }
      }
      $this->built = $this->executed = FALSE;
      $this->build_info = array();
      $this->attachment_before = '';
      $this->attachment_after = '';
CommentFileSizeAuthor
#2 hack-views-module-2.txt865 bytesgerhard killesreiter

Comments

merlinofchaos’s picture

Status: Needs work » Needs review
gerhard killesreiter’s picture

StatusFileSize
new865 bytes

See patch

merlinofchaos’s picture

Status: Needs review » Fixed

Committed!

Status: Fixed » Closed (fixed)

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