X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLayout%2FActionBar%2FComboBox.pm;h=0ff0bc10d88c88bdb211d7274dc7ef3d25f796fa;hb=4a03aa4d5f2c201e2524bbf54ff59c9896ad416a;hp=555ae69b2f0810d6f8600e826e4d1c4caad06c3d;hpb=3cc1ebb7995720386bb845c266efa807e931df86;p=kivitendo-erp.git diff --git a/SL/Layout/ActionBar/ComboBox.pm b/SL/Layout/ActionBar/ComboBox.pm index 555ae69b2..0ff0bc10d 100644 --- 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 List::MoreUtils qw(none); 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 }; + return if none { $_->callable } @{ $_[0]->actions }; return $first->render if !@rest; $_[0]->p->html_tag('div',