Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2006 at 05:08 UTC
Updated:
1 Apr 2006 at 18:17 UTC
After installing the latest CVS views module files, it's not possible to export views anymore. This is because in the export page function there is a require_once call to 'views_data.inc', which doesn't exist anymore:
/*
* Export a view for cut & paste.
*/
function views_ui_admin_export_page($vid = '') {
// FIXME: Change this to a textarea.
$path = drupal_get_path('module', 'views');
require_once("$path/views_data.inc"); <--- this file doesn't exist anymore
$code = views_create_view_code($vid);
$lines = substr_count($code, "\n");
$form['code'] = array(
'#type' => 'textarea',
'#title' => $view->name,
'#default_value' => $code,
'#rows' => $lines);
return drupal_get_form('views_export', $form);
}
Removing the offending line seems to make the export function work again.
| Comment | File | Size | Author |
|---|---|---|---|
| views_ui.module.patch | 416 bytes | Permanently Undecided |
Comments
Comment #1
merlinofchaos commentedWhoops. I thought I'd gotten all these. :/
Comment #2
(not verified) commented