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 = '';
Comments
Comment #1
merlinofchaos commentedComment #2
gerhard killesreiter commentedSee patch
Comment #3
merlinofchaos commentedCommitted!