X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/976b1ddfe4464dcb6d626484ec64b5a80260f12c..7bbdbf2bd966e6317cff568ac6f60936b51d8df7:/SL/Presenter/Part.pm
diff --git a/SL/Presenter/Part.pm b/SL/Presenter/Part.pm
index 57eb1cf98..1f96cbe7b 100644
--- a/SL/Presenter/Part.pm
+++ b/SL/Presenter/Part.pm
@@ -17,7 +17,7 @@ sub part {
croak "Unknown display type '$params{display}'" unless $params{display} =~ m/^(?:inline|table-cell)$/;
my $text = join '', (
- $params{no_link} ? '' : '',
+ $params{no_link} ? '' : '',
$self->escape($part->partnumber),
$params{no_link} ? '' : '',
);
@@ -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(part_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);
@@ -105,7 +105,7 @@ C.
C<$value> can be a parts id or a C instance.
-If C<%params> contains C only parts of this type will be used
+If C<%params> contains C only parts of this type will be used
for autocompletion. You may comma separate multiple types as in
C.
@@ -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