projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ActionBar: Verwendung bei Liquiditätsübersicht
[kivitendo-erp.git]
/
SL
/
Layout
/
ActionBar
/
ComboBox.pm
diff --git
a/SL/Layout/ActionBar/ComboBox.pm
b/SL/Layout/ActionBar/ComboBox.pm
index
555ae69
..
0ff0bc1
100644
(file)
--- a/
SL/Layout/ActionBar/ComboBox.pm
+++ b/
SL/Layout/ActionBar/ComboBox.pm
@@
-4,6
+4,7
@@
use strict;
use parent qw(SL::Layout::ActionBar::Action);
use JSON;
use parent qw(SL::Layout::ActionBar::Action);
use JSON;
+use List::MoreUtils qw(none);
use Rose::Object::MakeMethods::Generic (
'scalar --get_set_init' => [ qw(actions) ],
use Rose::Object::MakeMethods::Generic (
'scalar --get_set_init' => [ qw(actions) ],
@@
-21,6
+22,7
@@
sub from_params {
sub render {
my ($first, @rest) = @{ $_[0]->actions };
sub render {
my ($first, @rest) = @{ $_[0]->actions };
+ return if none { $_->callable } @{ $_[0]->actions };
return $first->render if !@rest;
$_[0]->p->html_tag('div',
return $first->render if !@rest;
$_[0]->p->html_tag('div',