Issue #1838892 by marcingy, TravisCarden: Fixed Fatal error when sorting dblog by type.
parent
fd846046df
commit
951abb89ce
|
@ -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 @@ class DBLogTest extends WebTestBase {
|
|||
$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');
|
||||
|
|
Loading…
Reference in New Issue