Problem: When you edit, export or clone a view, the 'view' tab gives a 'page not found'.

Reason:
In the views_ui.module the callback to create the 'view' tab points to an unexisting function:

function views_ui_add_menu_items(&$items, $view, $url, $base = TRUE, $args = array()) {
  if (user_access('administer views')) {
    if ($base) {
      // we also have to add the administrative 'view' of the view in some
      // cases
      $items[] = array('path' => $url,
        'title' => t('View'),
        'callback' => 'views_page',
        'callback arguments' => array_merge(array($view->name), $args),
        'access' => user_access('administer views'),
        'type' => MENU_CALLBACK);
    }
..

That should be:

        'callback' => 'views_view_page',

Attached you'll find a patch.

CommentFileSizeAuthor
vieuw_ui_0.patch1.05 KBJo Wouters
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

I swear, I looked at that for at least an hour without figuring out I had the function name wrong. Sigh. Thanks.

This is the major thing that's held up the 1.6 release!

merlinofchaos’s picture

Applied. I am grateful for this fix, and am only sad that it took me so long to get to it.

Jo Wouters’s picture

Status: Needs review » Fixed

Great! I'm happy I could help you in improving views (even if it was only by changing 1 line :-)

I suppose I can mark this fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)