Revision 03938396
Von Rolf Fluehmann vor fast 11 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
167 | 167 |
sub action_save { |
168 | 168 |
my ($self) = @_; |
169 | 169 |
|
170 |
my $pattern = '[ \t\n\r]+'; |
|
171 |
my $name = $self->{cv}->name; |
|
172 |
$name =~ s/^$pattern//; |
|
173 |
$name =~ s/$pattern$//; |
|
174 |
$name =~ s/$pattern/ /g; |
|
175 |
if ( $name eq '' ) { |
|
176 |
$::form->dberror( $::locale->text('Customer missing!') ); |
|
177 |
} else { |
|
178 |
$self->{cv}->name($name); |
|
179 |
} |
|
180 |
|
|
170 | 181 |
$self->_save(); |
171 | 182 |
|
172 | 183 |
my @redirect_params = ( |
Auch abrufbar als: Unified diff
2220,2321: Validierung eingegebener Kunden- und Lieferantennamen