Révision 6eb8d15f
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/views/plugins/views_plugin_style_jump_menu.inc | ||
---|---|---|
142 | 142 |
unset($this->view->row_index); |
143 | 143 |
|
144 | 144 |
$default_value = ''; |
145 |
if ($this->options['default_value'] && !empty($paths[url($_GET['q'])])) { |
|
146 |
$default_value = $paths[url($_GET['q'])]; |
|
145 |
if ($this->options['default_value']) { |
|
146 |
$lookup_options = array(); |
|
147 |
// We need to check if the path is absolute |
|
148 |
// or else language is not taken in account. |
|
149 |
if ($this->view->display[$this->view->current_display]->display_options['fields'][$this->options['path']]['absolute']) { |
|
150 |
$lookup_options['absolute'] = TRUE; |
|
151 |
} |
|
152 |
$lookup_url = url($_GET['q'], $lookup_options); |
|
153 |
if (!empty($paths[$lookup_url])) { |
|
154 |
$default_value = $paths[$lookup_url]; |
|
155 |
} |
|
147 | 156 |
} |
148 | 157 |
|
149 | 158 |
ctools_include('jump-menu'); |
Formats disponibles : Unified diff
Weekly update of contrib modules