A view that had been working fine has suddenly refused to allow simple changes to be updated or saved. Also when trying to export it, the field where the export should be, is empty.

This suddenly occured after several days of development to extend the view. This involved adding a relation to the view, and several exposed filters. I had been taking frequent exports of it, together with 2 other views to keep a hook.views_default.inc up to date. At this late point in development, in the admin GUI, I wanted to remove the "remember" from one of the filters, and also noticed at the same time that the "relationship" on a different filter was off. However the view refused to "update" or "save" these or any other "test" adjustments I tried. I then made the changes directly in my editor, which were accepted. After making thes changes in my editor, in the GUI I see what I expect. However I still cannot change it in the GUI. AND, I am unable to export only this view. Either by itself or if I include it in a bulk export, the field is empty. All other views are working as expected. Update, save and export. I even tried rolling the hook.view_default.inc back to an earlier version, before the problem occured, but the update, save and export bug remains. only on this 1 of 4 views.

Below is the view, extracted from the hook.views_default.inc. I note, for this view I have 2 sets of 3 templates plus an exposed filters template. Tamper with the exposed filters in hook_form_alter and theme them in a preprocess function and push the lot around again with jQuery. I also renamed 2 displays, from block_1 to block_list and block_2 to block_js, without problems. I'm fairly new to Drupal, however as I understand, these should have now effect to what happens in the admin GUI, which is where the problem occurs.

I also note, I had pushed the scripted changes from my own development repository to the staging repository, Although the database versions are not identical, the above problems occur there just the same. I will try making another copy/clone of the whole, delete the view, and hand build it again in the GUI to see if the problem then goes away. (The changes should have been moved to the production server now :-/)

Any suggestions someone may have will be greatly appreciated.


  /*
   * View 'tour_list'
   */
  $view = new view;
  $view->name = 'tour_list';
  $view->description = 'Category tour leaf list teaser set';
  $view->tag = 'tour_date';
  $view->view_php = '';
  $view->base_table = 'node';
  $view->is_cacheable = FALSE;
  $view->api_version = 2;
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  $handler = $view->new_display('default', 'Defaults', 'default');
  $handler->override_option('relationships', array(
    'field_lodging_node_nid' => array(
      'label' => 'Lodging',
      'required' => 0,
      'delta' => -1,
      'id' => 'field_lodging_node_nid',
      'table' => 'node_data_field_lodging_node',
      'field' => 'field_lodging_node_nid',
      'relationship' => 'none',
    ),
  ));
  $handler->override_option('fields', array(
    'view_node' => array(
      'label' => 'Link',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'text' => '',
      'exclude' => 0,
      'id' => 'view_node',
      'table' => 'node',
      'field' => 'view_node',
      'relationship' => 'none',
    ),
    'field_tour_image_fid' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'fix-195x120_path',
      'multiple' => array(
        'group' => 1,
        'multiple_number' => '1',
        'multiple_from' => '0',
        'multiple_reversed' => 0,
      ),
      'exclude' => 0,
      'id' => 'field_tour_image_fid',
      'table' => 'node_data_field_tour_image',
      'field' => 'field_tour_image_fid',
      'relationship' => 'none',
    ),
    'field_name_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_name_value',
      'table' => 'node_data_field_name',
      'field' => 'field_name_value',
      'relationship' => 'none',
    ),
    'field_tour_teaser_text_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_tour_teaser_text_value',
      'table' => 'node_data_field_tour_teaser_text',
      'field' => 'field_tour_teaser_text_value',
      'relationship' => 'none',
    ),
    'field_system_price_min_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'default',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
      'override' => array(
        'button' => 'Übersteuern',
      ),
    ),
    'field_tour_link_text_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_tour_link_text_value',
      'table' => 'node_data_field_tour_link_text',
      'field' => 'field_tour_link_text_value',
      'relationship' => 'none',
    ),
    'field_rating_stars_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'default',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_rating_stars_value',
      'table' => 'node_data_field_rating_stars',
      'field' => 'field_rating_stars_value',
      'relationship' => 'field_lodging_node_nid',
    ),
    'field_lodging_type_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_lodging_type_value',
      'table' => 'node_data_field_lodging_type',
      'field' => 'field_lodging_type_value',
      'relationship' => 'field_lodging_node_nid',
    ),
    'field_name_value_1' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_name_value_1',
      'table' => 'node_data_field_name',
      'field' => 'field_name_value',
      'relationship' => 'field_lodging_node_nid',
    ),
  ));
  $handler->override_option('sorts', array(
    'field_system_price_min_value' => array(
      'order' => 'ASC',
      'delta' => -1,
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
    ),
  ));
  $handler->override_option('arguments', array(
    'tid' => array(
      'default_action' => 'default',
      'style_plugin' => 'default_summary',
      'style_options' => array(),
      'wildcard' => 'all',
      'wildcard_substitution' => 'All',
      'title' => '',
      'breadcrumb' => '',
      'default_argument_type' => 'php',
      'default_argument' => '',
      'validate_type' => 'none',
      'validate_fail' => 'not found',
      'break_phrase' => 1,
      'add_table' => 0,
      'require_value' => 0,
      'reduce_duplicates' => 0,
      'set_breadcrumb' => 0,
      'id' => 'tid',
      'table' => 'term_node',
      'field' => 'tid',
      'validate_user_argument_type' => 'uid',
      'validate_user_roles' => array(
        '2' => 0,
      ),
      'relationship' => 'none',
      'default_options_div_prefix' => '',
      'default_argument_user' => 0,
      'default_argument_fixed' => '',
      'default_argument_php' => '$node = node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){ $terms[] = $term->tid; }
return implode(\'+\', $terms);
}
else {
return false;
}$node = node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){ $terms[] = $term->tid; }
return implode(\'+\', $terms);
}
else {
return false;
}',
      'validate_argument_node_type' => array(
        'auxiliary_service' => 0,
        'departure_point_set' => 0,
        'insurance' => 0,
        'lodging' => 0,
        'page' => 0,
        'page_level1' => 0,
        'page_level2' => 0,
        'page_tour' => 0,
        'place' => 0,
        'story' => 0,
        'transport_type' => 0,
      ),
      'validate_argument_node_access' => 0,
      'validate_argument_nid_type' => 'nid',
      'validate_argument_vocabulary' => array(
        '1' => 0,
        '2' => 0,
      ),
      'validate_argument_type' => 'tid',
      'validate_argument_transform' => 0,
      'validate_user_restrict_roles' => 0,
      'validate_argument_php' => '',
    ),
  ));
  $handler->override_option('filters', array(
    'type' => array(
      'operator' => 'in',
      'value' => array(
        'page_tour' => 'page_tour',
      ),
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'type',
      'table' => 'node',
      'field' => 'type',
      'relationship' => 'none',
    ),
    'vid' => array(
      'operator' => 'in',
      'value' => array(
        '1' => '1',
      ),
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'vid',
      'table' => 'term_data',
      'field' => 'vid',
      'relationship' => 'none',
    ),
    'status_extra' => array(
      'operator' => '=',
      'value' => '',
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'status_extra',
      'table' => 'node',
      'field' => 'status_extra',
      'relationship' => 'none',
    ),
    'field_rating_stars_value' => array(
      'operator' => '>=',
      'value' => array(
        'value' => '',
        'min' => '',
        'max' => '',
      ),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_rating_stars_value_op',
        'identifier' => 'comfort_value',
        'label' => 'comfort_value',
        'optional' => 1,
        'remember' => 1,
      ),
      'id' => 'field_rating_stars_value',
      'table' => 'node_data_field_rating_stars',
      'field' => 'field_rating_stars_value',
      'relationship' => 'field_lodging_node_nid',
    ),
    'field_age_class_value_many_to_one' => array(
      'operator' => 'or',
      'value' => array(),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_age_class_value_many_to_one_op',
        'identifier' => 'age',
        'label' => 'age',
        'optional' => 1,
        'single' => 1,
        'remember' => 1,
        'reduce' => 0,
      ),
      'id' => 'field_age_class_value_many_to_one',
      'table' => 'node_data_field_age_class',
      'field' => 'field_age_class_value_many_to_one',
      'relationship' => 'none',
      'reduce_duplicates' => 1,
    ),
    'field_rating_stars_value_many_to_one' => array(
      'operator' => 'or',
      'value' => array(),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_rating_stars_value_many_to_one_op',
        'identifier' => 'comfort',
        'label' => 'comfort',
        'optional' => 1,
        'single' => 1,
        'remember' => 1,
        'reduce' => 0,
      ),
      'id' => 'field_rating_stars_value_many_to_one',
      'table' => 'node_data_field_rating_stars',
      'field' => 'field_rating_stars_value_many_to_one',
      'relationship' => 'field_lodging_node_nid',
      'reduce_duplicates' => 0,
    ),
    'field_lodging_type_value_many_to_one' => array(
      'operator' => 'or',
      'value' => array(),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_lodging_type_value_many_to_one_op',
        'identifier' => 'lodging_type',
        'label' => 'lodging type',
        'optional' => 1,
        'single' => 1,
        'remember' => 1,
        'reduce' => 0,
      ),
      'id' => 'field_lodging_type_value_many_to_one',
      'table' => 'node_data_field_lodging_type',
      'field' => 'field_lodging_type_value_many_to_one',
      'relationship' => 'field_lodging_node_nid',
      'reduce_duplicates' => 0,
    ),
    'field_system_price_min_value' => array(
      'operator' => '<=',
      'value' => array(
        'value' => '',
        'min' => '',
        'max' => '',
      ),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_system_price_min_value_op',
        'identifier' => 'price_min',
        'label' => '',
        'optional' => 1,
        'remember' => 0,
      ),
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
    ),
  ));
  $handler->override_option('access', array(
    'type' => 'none',
  ));
  $handler->override_option('cache', array(
    'type' => 'none',
  ));
  $handler->override_option('empty', '<?php

drupal_add_js(
    array(

        \'round_blocks_force_round\' => array(
            //one off see note in global.js at round_blocks_force_round
            \'search_warn\' => \'#tour_list ul.warn li.image\',
        ),

        //\'round_images\' => array(
        //    \'teaser_block\' => \'#teaser_block li img\',
        //),

    ),
\'setting\');

    • !
    • print t(\'Unfortunately no matching offers could be found\')

      print t(\'Tip: the less restrictive the search, the more suggestions will be shown.\');

');
$handler->override_option('empty_format', '3');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler = $view->new_display('block', 'tour list', 'block_list');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('block', 'js', 'block_js');
$handler->override_option('fields', array(
'field_system_price_min_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_system_price_min_value',
'table' => 'node_data_field_system_price_min',
'field' => 'field_system_price_min_value',
'relationship' => 'none',
'override' => array(
'button' => 'Standard verwenden',
),
),
'field_lodging_type_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_lodging_type_value',
'table' => 'node_data_field_lodging_type',
'field' => 'field_lodging_type_value',
'relationship' => 'field_lodging_node_nid',
),
));
$handler->override_option('sorts', array());
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'page_tour' => 'page_tour',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'vid' => array(
'operator' => 'in',
'value' => array(
'1' => '1',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'relationship' => 'none',
),
'status_extra' => array(
'operator' => '=',
'value' => '',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
'relationship' => 'none',
),
));
$handler->override_option('empty', '');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '0');
$handler->override_option('style_plugin', 'default');
$handler->override_option('block_description', 'TOUR LIST: js Drupal.settings');
$handler->override_option('block_caching', -1);
$views[$view->name] = $view;

?>

Comments

bird-cage’s picture

This was my "description"

A view that had been working fine has suddenly refused to allow simple changes to be updated or saved. Also when trying to export it, the field where the export should be, is empty.

This suddenly occured after several days of development to extend the view. This involved adding a relation to the view, and several exposed filters. I had been taking frequent exports of it, together with 2 other views to keep a hook.views_default.inc up to date. At this late point in development, in the admin GUI, I wanted to remove the "remember" from one of the filters, and also noticed at the same time that the "relationship" on a different filter was off. However the view refused to "update" or "save" these or any other "test" adjustments I tried. I then made the changes directly in my editor, which were accepted. After making thes changes in my editor, in the GUI I see what I expect. However I still cannot change it in the GUI. AND, I am unable to export only this view. Either by itself or if I include it in a bulk export, the field is empty. All other views are working as expected. Update, save and export. I even tried rolling the hook.view_default.inc back to an earlier version, before the problem occured, but the update, save and export bug remains. only on this 1 of 4 views.

Below is the view, extracted from the hook.views_default.inc. I note, for this view I have 2 sets of 3 templates plus an exposed filters template. Tamper with the exposed filters in hook_form_alter and theme them in a preprocess function and push the lot around again with jQuery. I also renamed 2 displays, from block_1 to block_list and block_2 to block_js, without problems. I'm fairly new to Drupal, however as I understand, these should have now effect to what happens in the admin GUI, which is where the problem occurs.

I also note, I had pushed the scripted changes from my own development repository to the staging repository, Although the database versions are not identical, the above problems occur there just the same. I will try making another copy/clone of the whole, delete the view, and hand build it again in the GUI to see if the problem then goes away. (The changes should have been moved to the production server now :-/)

Any suggestions someone may have will be greatly appreciated.


  /*
   * View 'tour_list'
   */
  $view = new view;
  $view->name = 'tour_list';
  $view->description = 'Category tour leaf list teaser set';
  $view->tag = 'tour_date';
  $view->view_php = '';
  $view->base_table = 'node';
  $view->is_cacheable = FALSE;
  $view->api_version = 2;
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  $handler = $view->new_display('default', 'Defaults', 'default');
  $handler->override_option('relationships', array(
    'field_lodging_node_nid' => array(
      'label' => 'Lodging',
      'required' => 0,
      'delta' => -1,
      'id' => 'field_lodging_node_nid',
      'table' => 'node_data_field_lodging_node',
      'field' => 'field_lodging_node_nid',
      'relationship' => 'none',
    ),
  ));
  $handler->override_option('fields', array(
    'view_node' => array(
      'label' => 'Link',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'text' => '',
      'exclude' => 0,
      'id' => 'view_node',
      'table' => 'node',
      'field' => 'view_node',
      'relationship' => 'none',
    ),
    'field_tour_image_fid' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'fix-195x120_path',
      'multiple' => array(
        'group' => 1,
        'multiple_number' => '1',
        'multiple_from' => '0',
        'multiple_reversed' => 0,
      ),
      'exclude' => 0,
      'id' => 'field_tour_image_fid',
      'table' => 'node_data_field_tour_image',
      'field' => 'field_tour_image_fid',
      'relationship' => 'none',
    ),
    'field_name_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_name_value',
      'table' => 'node_data_field_name',
      'field' => 'field_name_value',
      'relationship' => 'none',
    ),
    'field_tour_teaser_text_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_tour_teaser_text_value',
      'table' => 'node_data_field_tour_teaser_text',
      'field' => 'field_tour_teaser_text_value',
      'relationship' => 'none',
    ),
    'field_system_price_min_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'default',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
      'override' => array(
        'button' => 'Übersteuern',
      ),
    ),
    'field_tour_link_text_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_tour_link_text_value',
      'table' => 'node_data_field_tour_link_text',
      'field' => 'field_tour_link_text_value',
      'relationship' => 'none',
    ),
    'field_rating_stars_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'default',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_rating_stars_value',
      'table' => 'node_data_field_rating_stars',
      'field' => 'field_rating_stars_value',
      'relationship' => 'field_lodging_node_nid',
    ),
    'field_lodging_type_value' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_lodging_type_value',
      'table' => 'node_data_field_lodging_type',
      'field' => 'field_lodging_type_value',
      'relationship' => 'field_lodging_node_nid',
    ),
    'field_name_value_1' => array(
      'label' => '',
      'alter' => array(
        'alter_text' => 0,
        'text' => '',
        'make_link' => 0,
        'path' => '',
        'link_class' => '',
        'alt' => '',
        'prefix' => '',
        'suffix' => '',
        'target' => '',
        'help' => '',
        'trim' => 0,
        'max_length' => '',
        'word_boundary' => 1,
        'ellipsis' => 1,
        'strip_tags' => 0,
        'html' => 0,
      ),
      'empty' => '',
      'hide_empty' => 0,
      'empty_zero' => 0,
      'link_to_node' => 0,
      'label_type' => 'none',
      'format' => 'plain',
      'multiple' => array(
        'group' => TRUE,
        'multiple_number' => '',
        'multiple_from' => '',
        'multiple_reversed' => FALSE,
      ),
      'exclude' => 0,
      'id' => 'field_name_value_1',
      'table' => 'node_data_field_name',
      'field' => 'field_name_value',
      'relationship' => 'field_lodging_node_nid',
    ),
  ));
  $handler->override_option('sorts', array(
    'field_system_price_min_value' => array(
      'order' => 'ASC',
      'delta' => -1,
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
    ),
  ));
  $handler->override_option('arguments', array(
    'tid' => array(
      'default_action' => 'default',
      'style_plugin' => 'default_summary',
      'style_options' => array(),
      'wildcard' => 'all',
      'wildcard_substitution' => 'All',
      'title' => '',
      'breadcrumb' => '',
      'default_argument_type' => 'php',
      'default_argument' => '',
      'validate_type' => 'none',
      'validate_fail' => 'not found',
      'break_phrase' => 1,
      'add_table' => 0,
      'require_value' => 0,
      'reduce_duplicates' => 0,
      'set_breadcrumb' => 0,
      'id' => 'tid',
      'table' => 'term_node',
      'field' => 'tid',
      'validate_user_argument_type' => 'uid',
      'validate_user_roles' => array(
        '2' => 0,
      ),
      'relationship' => 'none',
      'default_options_div_prefix' => '',
      'default_argument_user' => 0,
      'default_argument_fixed' => '',
      'default_argument_php' => '$node = node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){ $terms[] = $term->tid; }
return implode(\'+\', $terms);
}
else {
return false;
}$node = node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){ $terms[] = $term->tid; }
return implode(\'+\', $terms);
}
else {
return false;
}',
      'validate_argument_node_type' => array(
        'auxiliary_service' => 0,
        'departure_point_set' => 0,
        'insurance' => 0,
        'lodging' => 0,
        'page' => 0,
        'page_level1' => 0,
        'page_level2' => 0,
        'page_tour' => 0,
        'place' => 0,
        'story' => 0,
        'transport_type' => 0,
      ),
      'validate_argument_node_access' => 0,
      'validate_argument_nid_type' => 'nid',
      'validate_argument_vocabulary' => array(
        '1' => 0,
        '2' => 0,
      ),
      'validate_argument_type' => 'tid',
      'validate_argument_transform' => 0,
      'validate_user_restrict_roles' => 0,
      'validate_argument_php' => '',
    ),
  ));
  $handler->override_option('filters', array(
    'type' => array(
      'operator' => 'in',
      'value' => array(
        'page_tour' => 'page_tour',
      ),
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'type',
      'table' => 'node',
      'field' => 'type',
      'relationship' => 'none',
    ),
    'vid' => array(
      'operator' => 'in',
      'value' => array(
        '1' => '1',
      ),
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'vid',
      'table' => 'term_data',
      'field' => 'vid',
      'relationship' => 'none',
    ),
    'status_extra' => array(
      'operator' => '=',
      'value' => '',
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'status_extra',
      'table' => 'node',
      'field' => 'status_extra',
      'relationship' => 'none',
    ),
    'field_rating_stars_value' => array(
      'operator' => '>=',
      'value' => array(
        'value' => '',
        'min' => '',
        'max' => '',
      ),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_rating_stars_value_op',
        'identifier' => 'comfort_value',
        'label' => 'comfort_value',
        'optional' => 1,
        'remember' => 1,
      ),
      'id' => 'field_rating_stars_value',
      'table' => 'node_data_field_rating_stars',
      'field' => 'field_rating_stars_value',
      'relationship' => 'field_lodging_node_nid',
    ),
    'field_age_class_value_many_to_one' => array(
      'operator' => 'or',
      'value' => array(),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_age_class_value_many_to_one_op',
        'identifier' => 'age',
        'label' => 'age',
        'optional' => 1,
        'single' => 1,
        'remember' => 1,
        'reduce' => 0,
      ),
      'id' => 'field_age_class_value_many_to_one',
      'table' => 'node_data_field_age_class',
      'field' => 'field_age_class_value_many_to_one',
      'relationship' => 'none',
      'reduce_duplicates' => 1,
    ),
    'field_rating_stars_value_many_to_one' => array(
      'operator' => 'or',
      'value' => array(),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_rating_stars_value_many_to_one_op',
        'identifier' => 'comfort',
        'label' => 'comfort',
        'optional' => 1,
        'single' => 1,
        'remember' => 1,
        'reduce' => 0,
      ),
      'id' => 'field_rating_stars_value_many_to_one',
      'table' => 'node_data_field_rating_stars',
      'field' => 'field_rating_stars_value_many_to_one',
      'relationship' => 'field_lodging_node_nid',
      'reduce_duplicates' => 0,
    ),
    'field_lodging_type_value_many_to_one' => array(
      'operator' => 'or',
      'value' => array(),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_lodging_type_value_many_to_one_op',
        'identifier' => 'lodging_type',
        'label' => 'lodging type',
        'optional' => 1,
        'single' => 1,
        'remember' => 1,
        'reduce' => 0,
      ),
      'id' => 'field_lodging_type_value_many_to_one',
      'table' => 'node_data_field_lodging_type',
      'field' => 'field_lodging_type_value_many_to_one',
      'relationship' => 'field_lodging_node_nid',
      'reduce_duplicates' => 0,
    ),
    'field_system_price_min_value' => array(
      'operator' => '<=',
      'value' => array(
        'value' => '',
        'min' => '',
        'max' => '',
      ),
      'group' => '0',
      'exposed' => TRUE,
      'expose' => array(
        'use_operator' => 0,
        'operator' => 'field_system_price_min_value_op',
        'identifier' => 'price_min',
        'label' => '',
        'optional' => 1,
        'remember' => 0,
      ),
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
    ),
  ));
  $handler->override_option('access', array(
    'type' => 'none',
  ));
  $handler->override_option('cache', array(
    'type' => 'none',
  ));
  $handler->override_option('empty', '<?php

drupal_add_js(
    array(

        \'round_blocks_force_round\' => array(
            //one off see note in global.js at round_blocks_force_round
            \'search_warn\' => \'#tour_list ul.warn li.image\',
        ),

        //\'round_images\' => array(
        //    \'teaser_block\' => \'#teaser_block li img\',
        //),

    ),
\'setting\');

    • !
    • print t(\'Unfortunately no matching offers could be found\')

      print t(\'Tip: the less restrictive the search, the more suggestions will be shown.\');

');
$handler->override_option('empty_format', '3');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler = $view->new_display('block', 'tour list', 'block_list');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('block', 'js', 'block_js');
$handler->override_option('fields', array(
'field_system_price_min_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_system_price_min_value',
'table' => 'node_data_field_system_price_min',
'field' => 'field_system_price_min_value',
'relationship' => 'none',
'override' => array(
'button' => 'Standard verwenden',
),
),
'field_lodging_type_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_lodging_type_value',
'table' => 'node_data_field_lodging_type',
'field' => 'field_lodging_type_value',
'relationship' => 'field_lodging_node_nid',
),
));
$handler->override_option('sorts', array());
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'page_tour' => 'page_tour',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'vid' => array(
'operator' => 'in',
'value' => array(
'1' => '1',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'relationship' => 'none',
),
'status_extra' => array(
'operator' => '=',
'value' => '',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
'relationship' => 'none',
),
));
$handler->override_option('empty', '');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '0');
$handler->override_option('style_plugin', 'default');
$handler->override_option('block_description', 'TOUR LIST: js Drupal.settings');
$handler->override_option('block_caching', -1);
$views[$view->name] = $view;

?>

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Cool. No information

  • What the hell is a simple change
  • Can you still access the admin page
  • Do you have the form module enabled

And so on .
Read http://drupal.org/node/571990 to understand how you can create valid and answerable issues.

bird-cage’s picture

I had written a complete description in the issue's "description" including the view, however none of it was there when I saved the issue. Went back in my browsers history, grabbed it all and tried to past it all into a comment, likewise nothing after saving. I have no idea why. The view is about 800 lines long. Is it possible that if the text of a post or comment are to long, they get dropped?

After this comment I will try to put in a full description in a sequence of comments. I hope it works.

bird-cage’s picture

I spent most of the last week extending a view which has existed very nicely for the last 3 months. The extention involves adding 5 exposed filters, 3 of which use a relationship. The relationship is also new to the view. Likewise a second block display.

I note the view involves 2 sets of 3 templates, plus an exposed filters template, hook form alter and preprocessing function to bring the exposed filters into the shape I require. (Not to mention a bit of jQuery) All of this to my understanding should have nothing to do with the problem which suddenly occured late Friday. We were in the final rounds of QA and minor tweeks. Also note, I had been saving bulk exports of this with 2 other views at very regular intervals, the last being perhaps 30 min before the problem occured. The only manual change to these exports, was changing the display names to block_list and block_js. Otherwise all other changes were made via the admin GUI.

The problem:

I wanted to remove the "remember" setting on some of the filters in the GUI. I also wanted to reinstate the relationship setting on another, which for unknown reasons was dropped, (the cause may or may not have been human error). However as of this moment, regardless of what I tried to change, I could not and cannot update or save the changes. As soon as I press "update" the changes are lost again. In my attempts to track down the cause, I tried to take an export of the view. The textarea where the export should be is now always empty. Likewise if I try it in the bulk export. NB: If I try to bulk export the 3 views, as before, the field is now empty, however, if I only export the other two, it works as expected !?!

I'm fairly new to Drupal, so I don't have vast experience in this field to draw on. It appears to me, that something within the view is putting a "spanner in the works". But what it could be, is beyond me.

The last change I made successfully, before the problem occured.

(to the best of my memory)
I think the last successful change I made in the GUI, before it "clagged" was to add a "PHP code empty text". And then successfully bulk exported it together with the other 2.

It's also worth noting

I am still able to alter the view by editing it in myModule.views_default.inc, and these changes take affect, both front end and in the admin GUI. But I continue not to be able to make changes in the GUI or export it.

I will now save this comment and do my best to add the view in another comment or as attachment

A HA

After several tries I managed to save the code to the comment below. But only after removing the embracing php tags. Also "code" tages make it disappear, Note again the view has "php code empty text". If I looked at the comment below in "edit" everything was there, but when saved it was blank, just like the description and my first comment above.

PS.

Just tried removing the php code empty text as in:
$handler->override_option('empty', '');
$handler->override_option('empty_format', '1');

Unfortunately the view continues not to be update/save or exportable in the GUI. Other than that all works as expected, including all my other views.

bird-cage’s picture

/*
* View 'tour_list'
*/
$view = new view;
$view->name = 'tour_list';
$view->description = 'Category tour leaf list teaser set';
$view->tag = 'tour_date';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'field_lodging_node_nid' => array(
'label' => 'Lodging',
'required' => 0,
'delta' => -1,
'id' => 'field_lodging_node_nid',
'table' => 'node_data_field_lodging_node',
'field' => 'field_lodging_node_nid',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'view_node' => array(
'label' => 'Link',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'text' => '',
'exclude' => 0,
'id' => 'view_node',
'table' => 'node',
'field' => 'view_node',
'relationship' => 'none',
),
'field_tour_image_fid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'fix-195x120_path',
'multiple' => array(
'group' => 1,
'multiple_number' => '1',
'multiple_from' => '0',
'multiple_reversed' => 0,
),
'exclude' => 0,
'id' => 'field_tour_image_fid',
'table' => 'node_data_field_tour_image',
'field' => 'field_tour_image_fid',
'relationship' => 'none',
),
'field_name_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_name_value',
'table' => 'node_data_field_name',
'field' => 'field_name_value',
'relationship' => 'none',
),
'field_tour_teaser_text_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_tour_teaser_text_value',
'table' => 'node_data_field_tour_teaser_text',
'field' => 'field_tour_teaser_text_value',
'relationship' => 'none',
),
'field_system_price_min_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_system_price_min_value',
'table' => 'node_data_field_system_price_min',
'field' => 'field_system_price_min_value',
'relationship' => 'none',
'override' => array(
'button' => 'Übersteuern',
),
),
'field_tour_link_text_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_tour_link_text_value',
'table' => 'node_data_field_tour_link_text',
'field' => 'field_tour_link_text_value',
'relationship' => 'none',
),
'field_rating_stars_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_rating_stars_value',
'table' => 'node_data_field_rating_stars',
'field' => 'field_rating_stars_value',
'relationship' => 'field_lodging_node_nid',
),
'field_lodging_type_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_lodging_type_value',
'table' => 'node_data_field_lodging_type',
'field' => 'field_lodging_type_value',
'relationship' => 'field_lodging_node_nid',
),
'field_name_value_1' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_name_value_1',
'table' => 'node_data_field_name',
'field' => 'field_name_value',
'relationship' => 'field_lodging_node_nid',
),
));
$handler->override_option('sorts', array(
'field_system_price_min_value' => array(
'order' => 'ASC',
'delta' => -1,
'id' => 'field_system_price_min_value',
'table' => 'node_data_field_system_price_min',
'field' => 'field_system_price_min_value',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'tid' => array(
'default_action' => 'default',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'php',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'break_phrase' => 1,
'add_table' => 0,
'require_value' => 0,
'reduce_duplicates' => 0,
'set_breadcrumb' => 0,
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '$node = node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){ $terms[] = $term->tid; }
return implode(\'+\', $terms);
}
else {
return false;
}$node = node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){ $terms[] = $term->tid; }
return implode(\'+\', $terms);
}
else {
return false;
}',
'validate_argument_node_type' => array(
'auxiliary_service' => 0,
'departure_point_set' => 0,
'insurance' => 0,
'lodging' => 0,
'page' => 0,
'page_level1' => 0,
'page_level2' => 0,
'page_tour' => 0,
'place' => 0,
'story' => 0,
'transport_type' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'1' => 0,
'2' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_php' => '',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'page_tour' => 'page_tour',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'vid' => array(
'operator' => 'in',
'value' => array(
'1' => '1',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'relationship' => 'none',
),
'status_extra' => array(
'operator' => '=',
'value' => '',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
'relationship' => 'none',
),
'field_rating_stars_value' => array(
'operator' => '>=',
'value' => array(
'value' => '',
'min' => '',
'max' => '',
),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'field_rating_stars_value_op',
'identifier' => 'comfort_value',
'label' => 'comfort_value',
'optional' => 1,
'remember' => 0,
),
'id' => 'field_rating_stars_value',
'table' => 'node_data_field_rating_stars',
'field' => 'field_rating_stars_value',
'relationship' => 'field_lodging_node_nid',
),
'field_age_class_value_many_to_one' => array(
'operator' => 'or',
'value' => array(),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'field_age_class_value_many_to_one_op',
'identifier' => 'age',
'label' => 'age',
'optional' => 1,
'single' => 1,
'remember' => 1,
'reduce' => 0,
),
'id' => 'field_age_class_value_many_to_one',
'table' => 'node_data_field_age_class',
'field' => 'field_age_class_value_many_to_one',
'relationship' => 'none',
'reduce_duplicates' => 1,
),
'field_rating_stars_value_many_to_one' => array(
'operator' => 'or',
'value' => array(),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'field_rating_stars_value_many_to_one_op',
'identifier' => 'comfort',
'label' => 'comfort',
'optional' => 1,
'single' => 1,
'remember' => 0,
'reduce' => 0,
),
'id' => 'field_rating_stars_value_many_to_one',
'table' => 'node_data_field_rating_stars',
'field' => 'field_rating_stars_value_many_to_one',
'relationship' => 'field_lodging_node_nid',
'reduce_duplicates' => 0,
),
'field_lodging_type_value_many_to_one' => array(
'operator' => 'or',
'value' => array(),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'field_lodging_type_value_many_to_one_op',
'identifier' => 'lodging_type',
'label' => 'lodging type',
'optional' => 1,
'single' => 1,
'remember' => 0,
'reduce' => 0,
),
'id' => 'field_lodging_type_value_many_to_one',
'table' => 'node_data_field_lodging_type',
'field' => 'field_lodging_type_value_many_to_one',
'relationship' => 'field_lodging_node_nid',
'reduce_duplicates' => 0,
),
'field_system_price_min_value' => array(
'operator' => '<=',
'value' => array(
'value' => '',
'min' => '',
'max' => '',
),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'field_system_price_min_value_op',
'identifier' => 'price_min',
'label' => '',
'optional' => 1,
'remember' => 0,
),
'id' => 'field_system_price_min_value',
'table' => 'node_data_field_system_price_min',
'field' => 'field_system_price_min_value',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('empty', '


drupal_add_js(
    array(

        \'round_blocks_force_round\' => array(
            //one off see note in global.js at round_blocks_force_round
            \'search_warn\' => \'#tour_list ul.warn li.image\',
        ),

        //\'round_images\' => array(
        //    \'teaser_block\' => \'#teaser_block li img\',
        //),

    ),
\'setting\');

    • !
    • print t(\'Unfortunately no matching offers could be found\')

      print t(\'Tip: the less restrictive the search, the more suggestions will be shown.\');

');
$handler->override_option('empty_format', '3');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler = $view->new_display('block', 'tour list', 'block_list');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('block', 'js', 'block_js');
$handler->override_option('fields', array(
'field_system_price_min_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_system_price_min_value',
'table' => 'node_data_field_system_price_min',
'field' => 'field_system_price_min_value',
'relationship' => 'none',
'override' => array(
'button' => 'Standard verwenden',
),
),
'field_lodging_type_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_lodging_type_value',
'table' => 'node_data_field_lodging_type',
'field' => 'field_lodging_type_value',
'relationship' => 'field_lodging_node_nid',
),
));
$handler->override_option('sorts', array());
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'page_tour' => 'page_tour',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'vid' => array(
'operator' => 'in',
'value' => array(
'1' => '1',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'relationship' => 'none',
),
'status_extra' => array(
'operator' => '=',
'value' => '',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
'relationship' => 'none',
),
));
$handler->override_option('empty', '');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '0');
$handler->override_option('style_plugin', 'default');
$handler->override_option('block_description', 'TOUR LIST: js Drupal.settings');
$handler->override_option('block_caching', -1);
$views[$view->name] = $view;

bird-cage’s picture

Hello dereine,

here: http://drupal.org/node/720624#comment-2625370 I've posted a bug report related to why this issue has no information.

PS. Thanks for the good work, both views and drupal are very excellent! I hope with time, I may be able to make a more useful contribution.

Best regards
Richard

bird-cage’s picture

Status: Postponed (maintainer needs more info) » Active
dawehner’s picture

Exports should be wrapped with a < code > tag.

bird-cage’s picture

The code filter bug occurs the same both with < code > and < ?php ? >. But that's a different issue which only explained why this my original views bug post hat no info.

bird-cage’s picture

I actually found the bug. I worked on the views in English, but the sites default language is german. While developing, particularly views I like to set it to english, since the german is doppy (eg: views becomes Ansichten) likewise button "Override" becomes "Übersteuern" or more precisely:

      'exclude' => 0,
      'id' => 'field_system_price_min_value',
      'table' => 'node_data_field_system_price_min',
      'field' => 'field_system_price_min_value',
      'relationship' => 'none',
      'override' => array(
        'button' => '†bersteuern',
      ),

After I straightened up the bad character in my view's definition, it suddenly behaved as it should. Saving, updating and exporting all work perfectly again.

bird-cage’s picture

Status: Active » Closed (fixed)