StorageId now defaults to 0 and database column now set to NOT NULL. Changed default Id in php to match
This commit is contained in:
parent
33fc47c4b1
commit
cd0e6ba285
|
@ -683,7 +683,7 @@ switch ( $tab )
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td><?php echo translate('StorageArea') ?></td><td>
|
<tr><td><?php echo translate('StorageArea') ?></td><td>
|
||||||
<?php
|
<?php
|
||||||
$storage_areas = array(''=>'Default');
|
$storage_areas = array(0=>'Default');
|
||||||
$result = dbQuery( 'SELECT * FROM Storage ORDER BY Name');
|
$result = dbQuery( 'SELECT * FROM Storage ORDER BY Name');
|
||||||
$results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Storage' );
|
$results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Storage' );
|
||||||
foreach ( $results as $row => $storage_obj ) {
|
foreach ( $results as $row => $storage_obj ) {
|
||||||
|
|
Loading…
Reference in New Issue