I have a Finder set up with a simple textfield to compare to a Computed Field listed by a view... the value is unique for each node, so the Finder should simply redirect to the matching node when a correct value is entered, or display a no results message in the event that it doesn't. However... whilst Finder recognises the correct node, instead of redirect to node/nid (or its alias) it redirects to an imagefield file associated with that node (located at /sites/default/files/foo/bar.jpg)

Bizzare, no? Perhaps there's some logic broken somewhere in Finder where it decides whether to do a file goto, node goto, etc. Or maybe my Drupal install is just borked.

Paste of my Finder export below:

array(
  'finder_id' => '2',
  'base' => 'views',
  'title' => 'Artwork Finder',
  'description' => '',
  'path' => 'finder/2',
  'block' => '0',
  'settings' => array(
    'form_on_page' => 1,
    'form' => array(
      'prefix' => '',
      'prefix_format' => '1',
      'suffix' => '',
      'suffix_format' => '1',
      'button_text' => 'Find',
      'go_text' => 'Go',
    ),
    'advanced' => array(
      'no_results' => array(
        'no_results' => 'Sorry, no artwork matches that ID number. Please check the label and try again.
You entered <?php print $keywords[2][0]; ?>

<p>Alternatively, touch here to browse the artist index</p>',
      ),
      'filter' => 0,
      'validate_empty' => 0,
      'submission' => 0,
      'ahah' => 0,
      'ahah_effect' => 'none',
      'ahah_remote' => 0,
      'element_combination' => '0',
      'pager' => '10',
      'goto' => 'always',
      'hide_args' => 0,
      'arg_sep' => ',',
      'empty_symbol' => '',
      'show_links' => 0,
      'show_admin_links' => 1,
      'cache_finder_find' => '0',
    ),
    'views' => array(
      'view' => 'artwork_ids_array',
      'displays' => array(
        'query' => 'default',
        'output' => 'default',
      ),
      'results' => '0',
      'views_args' => array(
        'args' => '',
        'delimiter' => '/',
      ),
      'empty_text' => 0,
    ),
  ),
  'elements' => array(
    '0' => array(
      'finder_element_id' => '2',
      'finder_id' => '2',
      'element' => 'text',
      'title' => 'Artwork ID number',
      'weight' => '0',
      'settings' => array(
        'form' => array(
          'description' => '',
          'prefix' => '',
          'prefix_format' => '1',
          'suffix' => '',
          'suffix_format' => '1',
          'default_value' => '',
          'required' => 1,
          'field_prefix' => '',
          'field_suffix' => '',
          'maxlength' => '4',
          'minlength' => '4',
          'size' => '',
          'rows' => '0',
        ),
        'choices' => array(
          'field' => array(
            'node_data_field_unique_id.field_unique_id_value' => 'node_data_field_unique_id.field_unique_id_value',
          ),
          'displays' => array(
            'query' => 'default',
          ),
          'views' => array(
            'args' => '',
            'delimiter' => '/',
          ),
        ),
        'advanced' => array(
          'delimit' => '',
          'field_combination' => '0',
          'value_combination' => '0',
          'nesting_order' => '0',
          'match' => 'e',
        ),
      ),
      'element_handler' => array(
        '#title' => 'Text',
        '#module' => 'finder_text',
      ),
      '#_finder_object' => '1',
    ),
  ),
  'elements_index' => array(
    '2' => 0,
  ),
  'base_handler' => array(
    '#title' => 'Views finder',
    '#module' => 'finder_views',
  ),
  'admin_links' => array(
    'finder/2' => 'View \"Path\"',
    'admin/build/finder/2/edit' => 'Edit',
  ),
  'links' => array(),
  '#_finder_object' => '1',
)

And a pastebin of the view it looks at: http://pastebin.com/0dVQjc4K

Comments

danielb’s picture

actually i noticed something like this the other day, thought it was a fluke, will look into it

danielb’s picture

Status: Active » Fixed

ah just forgot to use breaks in the switch statement

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.