Commit d611ac4b authored by alexpott's avatar alexpott

Issue #2449079 by martin107, damiankloip: ViewsUI executable cleanup

parent c42d69a1
......@@ -570,7 +570,7 @@ public function renderPreview($display_id, $args = array()) {
$rows = array('query' => array(), 'statistics' => array());
$errors = $this->getExecutable()->validate();
$errors = $executable->validate();
$executable->destroy();
if (empty($errors)) {
$this->ajax = TRUE;
......@@ -733,7 +733,7 @@ public function renderPreview($display_id, $args = array()) {
'#template' => "<strong>{% trans 'Query build time' %}</strong>",
),
),
t('@time ms', array('@time' => intval($this->getExecutable()->build_time * 100000) / 100)),
t('@time ms', array('@time' => intval($executable->build_time * 100000) / 100)),
);
$rows['statistics'][] = array(
......@@ -743,7 +743,7 @@ public function renderPreview($display_id, $args = array()) {
'#template' => "<strong>{% trans 'Query execute time' %}</strong>",
),
),
t('@time ms', array('@time' => intval($this->getExecutable()->execute_time * 100000) / 100)),
t('@time ms', array('@time' => intval($executable->execute_time * 100000) / 100)),
);
$rows['statistics'][] = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment