Revision ae27679f
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
1286 | 1286 |
} |
1287 | 1287 |
|
1288 | 1288 |
$sth->finish; |
1289 |
|
|
1290 |
#Get currencies: |
|
1291 |
$query = qq|SELECT curr FROM currencies ORDER BY id|; |
|
1292 |
|
|
1293 |
$form->{CURRENCIES} = []; |
|
1294 |
|
|
1295 |
$sth = prepare_execute_query($form, $dbh, $query); |
|
1296 |
$sth->execute || $form->dberror($query); |
|
1297 |
while (my $ref = $sth->fetchrow_hashref("NAME_lc")) { |
|
1298 |
push @{ $form->{ CURRENCIES } } , $ref; |
|
1299 |
} |
|
1300 |
$sth->finish; |
|
1301 |
|
|
1302 |
#Which of them is the default currency? |
|
1303 |
$query = qq|SELECT curr AS defaultcurrency FROM currencies WHERE id = (SELECT curr FROM defaults LIMIT 1);|; |
|
1304 |
$sth = $dbh->prepare($query); |
|
1305 |
$sth->execute || $form->dberror($query); |
|
1306 |
|
|
1307 |
$form->{defaultcurrency} = ($sth->fetchrow_hashref("NAME_lc"))->{defaultcurrency}; |
|
1308 |
|
|
1309 |
$sth->finish; |
|
1310 |
|
|
1311 | 1289 |
$dbh->disconnect; |
1312 | 1290 |
|
1313 | 1291 |
$main::lxdebug->leave_sub(); |
Auch abrufbar als: Unified diff
Revert "Erstelle Tabelle currencies"
This reverts commit 6d06b178d7e1b488396a91ce337a0801ed5893c8.
Conflicts:
locale/de/all