]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed job fields in index template
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 27 Jun 2011 14:04:29 +0000 (16:04 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:17 +0000 (14:49 +0200)
 - Improved db error exception in index.php

gui/bacula-web/index.php
gui/bacula-web/templates/index.tpl

index 15a66510b39915c7694f376c37dedbcb402ea508..dea1accf2ee8722ac4fef63cfd07fc34f98c1891 100644 (file)
@@ -117,6 +117,7 @@ $graph->SetYTitle( "GB" );
 $graph->Render();
 $dbSql->tpl->assign('graph_stored_bytes', $graph->Get_Image_file() );
 
+
 // Last 15 used volumes
 $vol_list = array();
 
@@ -129,7 +130,7 @@ $query .= "LIMIT 10 ";
 $result = $dbSql->db_link->query( $query );
 
 if ( PEAR::isError( $result ) )
-       die( "Unable to get last used volumes from catalog \n " . $result->getMessage() );
+       $this->TriggerDBError( 'Unable to get last used volumes from catalog' . $result );
 else {
        while ( $vol = $result->fetchRow() ) 
                array_push( $vol_list, $vol );
index 1a7d9d04fba0e018d15438df5d29370d8729fd8e..8f7560c9c17466c223d494e824e1873f9b26d608 100644 (file)
                </tr>
                {foreach from=$volume_list item=vol}
                <tr>
-                 <td>{$vol.Volumename}</td>
-                 <td>{$vol.VolStatus}</td>
-                 <td>{$vol.Lastwritten}</td>
-                 <td>{$vol.JobId}</td>
+                 <td>{$vol.volumename}</td>
+                 <td>{$vol.volstatus}</td>
+                 <td>{$vol.lastwritten}</td>
+                 <td>{$vol.jobid}</td>
                </tr>
                {/foreach}
          </table>