summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBojan Zivanovic2012-01-16 01:11:03 (GMT)
committer Bojan Zivanovic2012-01-16 01:11:03 (GMT)
commit01075d51fdd1b3fa50d4e682fd8ea2f1dd874bc2 (patch)
tree482d53a8bdcc2c8ad6c9943cbb6bd8924ab39100
parent0a418198eb9db74e0fa203ffd291747ef0f3368f (diff)
Issue #1402880 by bojanz, pcambra: Use a generic way of fetching results, instead of hardcoding field_alias provided by the default query plugin.
-rw-r--r--views_bulk_operations.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/views_bulk_operations.module b/views_bulk_operations.module
index 26f2f93..fc1bd07 100644
--- a/views_bulk_operations.module
+++ b/views_bulk_operations.module
@@ -606,7 +606,7 @@ function _views_bulk_operations_adjust_selection(&$selection, $select_all, $vbo)
$view->execute($vbo->view->current_display);
$results = array();
foreach ($view->result as $row_index => $result) {
- $results[$row_index] = $result->{$vbo->field_alias};
+ $results[$row_index] = $vbo->get_value($result);
}
$selection = $results;
}
@@ -1187,7 +1187,7 @@ function views_bulk_operations_execute($vid, $operation_id, $operation_arguments
// Select all rows.
$selection = array();
foreach ($view->result as $row_index => $row) {
- $selection[$row_index] = $row->{$vbo->field_alias};
+ $selection[$row_index] = $vbo->get_value($row);
}
// Execute the operation on the view results.