@@ -18,9 +18,9 @@ class views_handler_argument_aggregator_iid extends views_handler_argument_numer
|
||||
$titles = array();
|
||||
$placeholders = implode(', ', array_fill(0, sizeof($this->value), '%d'));
|
||||
|
||||
$result = db_select('aggregator_item')
|
||||
$result = db_select('aggregator_item', 'ai')
|
||||
->condition('iid', $this->value, 'IN')
|
||||
->fields(array('title'))
|
||||
->fields('ai', array('title'))
|
||||
->execute();
|
||||
foreach ($result as $term) {
|
||||
$titles[] = check_plain($term->title);
|
||||
|
@@ -103,7 +103,8 @@ class views_plugin_argument_validate_taxonomy_term extends views_plugin_argument
|
||||
if (!$term) {
|
||||
return FALSE;
|
||||
}
|
||||
$this->argument->validated_title = check_plain($term->name);
|
||||
$term = taxonomy_term_load($term->tid);
|
||||
$this->argument->validated_title = check_plain(entity_label('taxonomy_term', $term));
|
||||
return empty($vocabularies) || !empty($vocabularies[$term->machine_name]);
|
||||
|
||||
case 'tids':
|
||||
@@ -151,8 +152,8 @@ class views_plugin_argument_validate_taxonomy_term extends views_plugin_argument
|
||||
$validated_cache[$term->tid] = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
$titles[] = $validated_cache[$term->tid] = check_plain($term->name);
|
||||
$term = taxonomy_term_load($term->tid);
|
||||
$titles[] = $validated_cache[$term->tid] = check_plain(entity_label('taxonomy_term', $term));
|
||||
unset($test[$term->tid]);
|
||||
}
|
||||
}
|
||||
@@ -185,7 +186,8 @@ class views_plugin_argument_validate_taxonomy_term extends views_plugin_argument
|
||||
if ($type == 'convert') {
|
||||
$this->argument->argument = $term->tid;
|
||||
}
|
||||
$this->argument->validated_title = check_plain($term->name);
|
||||
$term = taxonomy_term_load($term->tid);
|
||||
$this->argument->validated_title = check_plain(entity_label('taxonomy_term', $term));
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user