X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/976b1ddfe4464dcb6d626484ec64b5a80260f12c..d4557a8bfab9f122ae19e91a8735e22a4b0c275b:/SL/Presenter/Part.pm diff --git a/SL/Presenter/Part.pm b/SL/Presenter/Part.pm index 57eb1cf98..97b14e886 100644 --- a/SL/Presenter/Part.pm +++ b/SL/Presenter/Part.pm @@ -37,8 +37,8 @@ sub part_picker { my $ret = $self->input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => "@classes", type => 'hidden', id => $id) . - join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(column type unit convertible_unit)) . - $self->input_tag("", (ref $value && $value->can('description')) ? $value->description : '', id => "${id}_name", %params); + join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(type unit convertible_unit)) . + $self->input_tag("", ref $value ? $value->displayable_name : '', id => "${id}_name", %params); $::request->layout->add_javascripts('autocomplete_part.js'); $::request->presenter->need_reinit_widgets($id); @@ -123,7 +123,7 @@ selectors though, they are not selectable once overridden. C will register it's javascript for inclusion in the next header rendering. If you write a standard controller that only call C once, it will just work. In case the header is generated in a different render call -(multiple blocks, ajax, old C style controllers) you need to +(multiple blocks, ajax, old C style controllers) you need to include C yourself. =back