Commit 951abb89 authored by webchick's avatar webchick

Issue #1838892 by marcingy, TravisCarden: Fixed Fatal error when sorting dblog by type.

parent fd846046
......@@ -61,7 +61,7 @@ function dblog_overview() {
$rows[] = array('data' =>
array(
// Cells
array('class' => 'icon'),
array('class' => array('icon')),
t($dblog->type),
format_date($dblog->timestamp, 'short'),
theme('dblog_message', array('event' => $dblog, 'link' => TRUE)),
......
......@@ -518,6 +518,10 @@ protected function testFilter() {
$this->assertEqual(array_sum($count), $type['count'], 'Count matched');
}
$this->drupalGet('admin/reports/dblog', array('query' => array('order' => 'Type')));
$this->assertResponse(200);
$this->assertText(t('Operations'), 'Operations text found');
// Clear all logs and make sure the confirmation message is found.
$this->drupalPost('admin/reports/dblog', array(), t('Clear log messages'));
$this->assertText(t('Database log cleared.'), 'Confirmation message found');
......
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