commit
f222048195
|
@ -231,7 +231,7 @@ for ( $i = 0; isset($_REQUEST['filter']) && $i < count($_REQUEST['filter']['term
|
|||
<?php
|
||||
} elseif ( $_REQUEST['filter']['terms'][$i]['attr'] == "StorageId" ) {
|
||||
$storageareas = array();
|
||||
$storageareas['NULL'] = 'Default ' . ZM_DIR_EVENTS;
|
||||
$storageareas[0] = 'Default ' . ZM_DIR_EVENTS;
|
||||
foreach ( dbFetchAll( "SELECT Id,Name FROM Storage ORDER BY lower(Name) ASC" ) as $storage ) {
|
||||
$storageareas[$storage['Id']] = $storage['Name'];
|
||||
}
|
||||
|
|
|
@ -683,7 +683,7 @@ switch ( $tab )
|
|||
</td></tr>
|
||||
<tr><td><?php echo translate('StorageArea') ?></td><td>
|
||||
<?php
|
||||
$storage_areas = array(''=>'Default');
|
||||
$storage_areas = array(0=>'Default');
|
||||
$result = dbQuery( 'SELECT * FROM Storage ORDER BY Name');
|
||||
$results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Storage' );
|
||||
foreach ( $results as $row => $storage_obj ) {
|
||||
|
|
Loading…
Reference in New Issue