CCK Dragtype not working at all (The structure was broken. It has been repaired.)

realityloop - June 23, 2009 - 01:57
Project:DraggableViews
Version:6.x-3.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

See the attached image for view containing draggableview control, and view code below for the display view:

Display View export

$view = new view;
$view->name = 'lerp_display_coord_centre';
$view->description = 'LERP Display Coordination Centre';
$view->tag = '';
$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('fields', array(
  'title' => array(
    'label' => 'Title',
    '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,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'tid' => array(
    'label' => 'Building',
    '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,
    ),
    'type' => 'separator',
    'separator' => ', ',
    'empty' => '',
    'link_to_taxonomy' => 0,
    'limit' => 1,
    'vids' => array(
      '2' => 2,
      '1' => 0,
      '8' => 0,
      '7' => 0,
      '5' => 0,
      '6' => 0,
      '4' => 0,
      '3' => 0,
    ),
    'exclude' => 0,
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
  ),
  'tid_1' => array(
    'label' => 'Floor',
    '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,
    ),
    'type' => 'separator',
    'separator' => ', ',
    'empty' => '',
    'link_to_taxonomy' => 0,
    'limit' => 1,
    'vids' => array(
      '4' => 4,
      '1' => 0,
      '8' => 0,
      '7' => 0,
      '5' => 0,
      '6' => 0,
      '2' => 0,
      '3' => 0,
    ),
    'exclude' => 0,
    'id' => 'tid_1',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
  ),
  'tid_2' => array(
    'label' => 'Room',
    '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,
    ),
    'type' => 'separator',
    'separator' => ', ',
    'empty' => '',
    'link_to_taxonomy' => 0,
    'limit' => 1,
    'vids' => array(
      '3' => 3,
      '1' => 0,
      '8' => 0,
      '7' => 0,
      '5' => 0,
      '6' => 0,
      '2' => 0,
      '4' => 0,
    ),
    'exclude' => 0,
    'id' => 'tid_2',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
  ),
  'edit_node' => 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,
    ),
    'text' => 'edit',
    'exclude' => 0,
    'id' => 'edit_node',
    'table' => 'node',
    'field' => 'edit_node',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'field_draggable_sort_value_1' => array(
    'order' => 'DESC',
    'delta' => -1,
    'id' => 'field_draggable_sort_value_1',
    'table' => 'node_data_field_draggable_sort',
    'field' => 'field_draggable_sort_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'tid' => array(
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'taxonomy_term',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    '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,
      '4' => 0,
      '6' => 0,
      '12' => 0,
      '13' => 0,
      '11' => 0,
      '14' => 0,
      '16' => 0,
      '15' => 0,
      '3' => 0,
      '9' => 0,
      '5' => 0,
      '8' => 0,
      '10' => 0,
      '7' => 0,
    ),
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'book' => 0,
      'contractor' => 0,
      'coord_centre' => 0,
      'lerp_external_contact' => 0,
      'lerp_internal_contact' => 0,
      'lerp_team_contact' => 0,
      'link' => 0,
      'news' => 0,
      'page' => 0,
      'procedure' => 0,
      'resource' => 0,
      'risk' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '7' => 7,
      '1' => 0,
      '8' => 0,
      '5' => 0,
      '6' => 0,
      '2' => 0,
      '4' => 0,
      '3' => 0,
    ),
    'validate_argument_type' => 'convert',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_node_flag_name' => '*relationship*',
    'validate_argument_node_flag_test' => 'flaggable',
    'validate_argument_node_flag_id_type' => 'id',
    'validate_argument_user_flag_name' => '*relationship*',
    'validate_argument_user_flag_test' => 'flaggable',
    'validate_argument_user_flag_id_type' => 'id',
    'validate_argument_php' => '',
  ),
  'tid_1' => array(
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'taxonomy_term',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'add_table' => 0,
    'require_value' => 0,
    'reduce_duplicates' => 0,
    'set_breadcrumb' => 0,
    'id' => 'tid_1',
    'table' => 'term_node',
    'field' => 'tid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '4' => 0,
      '6' => 0,
      '12' => 0,
      '13' => 0,
      '11' => 0,
      '14' => 0,
      '16' => 0,
      '15' => 0,
      '3' => 0,
      '9' => 0,
      '5' => 0,
      '8' => 0,
      '10' => 0,
      '7' => 0,
    ),
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'book' => 0,
      'contractor' => 0,
      'coord_centre' => 0,
      'lerp_external_contact' => 0,
      'lerp_internal_contact' => 0,
      'lerp_team_contact' => 0,
      'link' => 0,
      'news' => 0,
      'page' => 0,
      'procedure' => 0,
      'resource' => 0,
      'risk' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '8' => 8,
      '1' => 0,
      '7' => 0,
      '5' => 0,
      '6' => 0,
      '2' => 0,
      '4' => 0,
      '3' => 0,
    ),
    'validate_argument_type' => 'convert',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_node_flag_name' => '*relationship*',
    'validate_argument_node_flag_test' => 'flaggable',
    'validate_argument_node_flag_id_type' => 'id',
    'validate_argument_user_flag_name' => '*relationship*',
    'validate_argument_user_flag_test' => 'flaggable',
    'validate_argument_user_flag_id_type' => 'id',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'coord_centre' => 'coord_centre',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'role',
  'role' => array(
    '6' => '6',
    '3' => '3',
    '5' => '5',
    '8' => '8',
    '7' => '7',
  ),
  'perm' => '',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'LERP Display Coordination Centre');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('footer_format', '1');
$handler->override_option('empty_format', '1');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '1');
$handler->override_option('style_options', array(
  'grouping' => '',
));
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
  'relationship' => 'none',
  'build_mode' => 'full',
  'links' => 0,
  'comments' => 0,
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'lerp-display-coord');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => 'LERP Coord Centre',
  'description' => '',
  'weight' => '0',
  'name' => 'menu-editorlinks',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => '0',
));

When viewing the page with draggable controls I immediately get "The structure was broken. It has been repaired." message, and after changing order and saving the same message is returned twice and ordering does not get saved at all.

In the display view the order always outputs in the same order, even when I try and alter the order value in the Database for testing.

AttachmentSize
draggable-view-settings.png131.24 KB

#1

jstoller - July 24, 2009 - 19:54

I'm having the same problem. I've tried both the 6.x-3.2-beta5 release and the latest dev release, dated 2009-Jul-17, but neither seem to work.

I'm running Drupal 6.13 and Views 6.x-2.6.

#2

sevi - July 24, 2009 - 21:21

Mmm.. don't know.
But it is strange that the style-plugin (and -settings) don't appear in your views export code.

#3

jstoller - July 24, 2009 - 22:02
 
 

Drupal is a registered trademark of Dries Buytaert.