Revision 9c29f718
Von Sven Schöling vor fast 7 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
19 | 19 |
use SL::CVar; |
20 | 20 |
use SL::MoreCommon qw(save_form); |
21 | 21 |
use Carp; |
22 |
use SL::Presenter::EscapedText qw(escape is_escaped); |
|
22 | 23 |
|
23 | 24 |
use Rose::Object::MakeMethods::Generic ( |
24 | 25 |
'scalar --get_set_init' => [ qw(parts models part p warehouses multi_items_models |
... | ... | |
408 | 409 |
my $count = $_[0]->multi_items_models->count; |
409 | 410 |
|
410 | 411 |
if ($count == 0) { |
411 |
my $text = SL::Presenter::EscapedText->new(text => $::locale->text('No results.'));
|
|
412 |
my $text = escape($::locale->text('No results.'));
|
|
412 | 413 |
$_[0]->render($text, { layout => 0 }); |
413 | 414 |
} elsif ($count > $max_count) { |
414 |
my $text = SL::Presenter::EscapedText->new(text => $::locale->text('Too many results (#1 from #2).', $count, $max_count));
|
|
415 |
my $text = escpae($::locale->text('Too many results (#1 from #2).', $count, $max_count));
|
|
415 | 416 |
$_[0]->render($text, { layout => 0 }); |
416 | 417 |
} else { |
417 | 418 |
my $multi_items = $_[0]->multi_items_models->get; |
Auch abrufbar als: Unified diff
Presenter: Neue Struktur im Warenstamm umgesetzt