Revision 2191ef7f
Von Sven Schöling vor etwa 2 Jahren hinzugefügt
| SL/DB/Manager/PriceRuleItem.pm | ||
|---|---|---|
|
part => 'int',
|
||
|
number => 'num',
|
||
|
date => 'date',
|
||
|
text => undef,
|
||
|
textfield => undef,
|
||
|
bool => undef,
|
||
|
);
|
||
|
|
||
|
my %ops_by_cvar_type = (
|
||
| ... | ... | |
|
},
|
||
|
);
|
||
|
|
||
|
my $data_type = $price_rule_type_by_cvar_type{$config->type} or
|
||
|
my $data_type;
|
||
|
if (exists $price_rule_type_by_cvar_type{$config->type}) {
|
||
|
# known but undef typedefs are ignored.
|
||
|
# those cvar configs are not supported and can not be used in price rules
|
||
|
$data_type = $price_rule_type_by_cvar_type{$config->type} or next;
|
||
|
} else {
|
||
|
die "cvar type @{[$config->type]} is not supported in price rules";
|
||
|
}
|
||
|
|
||
|
my $ops = $ops_by_cvar_type{$config->type};
|
||
|
|
||
Auch abrufbar als: Unified diff
PriceRule: bei nicht unterstützten CVar Typen nicht abbrechen
nur bei unbekannten Typen, weil die wahrscheinlich ein Fehler sind.