Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 85282f8c

Von Sven Schöling vor etwa 2 Jahren hinzugefügt

  • ID 85282f8c9f8c77592dee390288ec9612b3e069b5
  • Vorgänger a6ff1ae3
  • Nachfolger 506698f8

PriceRule: bei nicht unterstützten CVar Typen nicht abbrechen

nur bei unbekannten Typen, weil die wahrscheinlich ein Fehler sind.

Unterschiede anzeigen:

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