Révision b08fce64
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/views/includes/ajax.inc | ||
---|---|---|
46 | 46 |
$_GET['q'] = $path; |
47 | 47 |
} |
48 | 48 |
|
49 |
// Add all $_POST data, because AJAX is always a post and many things, |
|
49 |
// If page parameter is in the $_POST exclude it from $_GET, |
|
50 |
// otherwise support views_ajax requests using $_GET. |
|
51 |
$exclude = isset($_POST['page']) ? array('page') : array(); |
|
52 |
// Add all $_POST data to $_GET as many things, |
|
50 | 53 |
// such as tablesorts, exposed filters and paging assume $_GET. |
51 |
$_GET = $_POST + drupal_get_query_parameters($_GET, array('page'));
|
|
54 |
$_GET = $_POST + drupal_get_query_parameters($_GET, $exclude);
|
|
52 | 55 |
|
53 | 56 |
// Overwrite the destination. |
54 | 57 |
// @see drupal_get_destination() |
... | ... | |
343 | 346 |
|
344 | 347 |
$query = db_select('taxonomy_term_data', 't'); |
345 | 348 |
$query->addTag('translatable'); |
346 |
$query->addTag('term_access'); |
|
349 |
$query->addTag('taxonomy_term_access');
|
|
347 | 350 |
|
348 | 351 |
// Do not select already entered terms. |
349 | 352 |
if (!empty($tags_typed)) { |
Formats disponibles : Unified diff
Weekly update of contrib modules