Project

General

Profile

« Previous | Next » 

Revision e6409ceb

Added by Andreas Kohlbecker almost 6 years ago

ref #7496 fixing erroneous acive state of tree items when in search registration page

View differences:

modules/cdm_dataportal/cdm_taxontree/cdm_taxontree.module
1020 1020
    $node_name = "module cdm_dataportal missing";
1021 1021
    $path = "";
1022 1022
  }
1023

  
1023
  // cannot use l() since it would add class="active to all root nodes in case of 'search_registrations'
1024
  $name_link =  '<a href="' . check_plain(url($path, array('query' => $query))). '">' . check_plain($node_name) . '</a>';
1024 1025
  if ($filterIncludes) {
1025
    $name = l($node_name, $path, array('query' => $query));
1026
    $name = $name_link;
1026 1027
    // No names for terms in filter widget; as discussed with A. Müller.
1027 1028
    // $name = '';
1028 1029
    $filter_class = 'filter_included';
1029 1030
  }
1030 1031
  else {
1031 1032
    if ($node->filter == 'on') {
1032
      $name = l($node_name, $path, array('query' => $query));
1033
      $name = $name_link;
1033 1034
      $filter_class = 'filter_on';
1034 1035
    }
1035 1036
    else {

Also available in: Unified diff