Revision ed023e22
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1593 | 1593 |
if (my $max = scalar @{ $form->{WAREHOUSES} }) { |
1594 | 1594 |
my ($default_warehouse_id, $default_bin_id); |
1595 | 1595 |
if ($form->{action} eq 'add') { # default only for new entries |
1596 |
$default_warehouse_id = $::instance_conf->get_default_warehouse_id;
|
|
1597 |
$default_bin_id = $::instance_conf->get_default_bin_id;
|
|
1596 |
$default_warehouse_id = $::instance_conf->get_warehouse_id; |
|
1597 |
$default_bin_id = $::instance_conf->get_bin_id; |
|
1598 | 1598 |
} |
1599 | 1599 |
$form->{warehouse_id} ||= $default_warehouse_id || $form->{WAREHOUSES}->[$max -1]->{id}; |
1600 | 1600 |
$form->{bin_id} ||= $default_bin_id || $form->{WAREHOUSES}->[$max -1]->{BINS}->[0]->{id}; |
Auch abrufbar als: Unified diff
InstanceConf: Funktionen get_default_(warehouse|bin)_id heißen inzwischen get_(warehouse|bin)_id