projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c312836
)
Partpicker: Nicht kaputtgehen ohne default part.
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 12 Jul 2013 13:20:36 +0000
(15:20 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 12 Jul 2013 13:20:36 +0000
(15:20 +0200)
SL/Presenter/Part.pm
patch
|
blob
|
history
diff --git
a/SL/Presenter/Part.pm
b/SL/Presenter/Part.pm
index
599d093
..
fff9f5e
100644
(file)
--- a/
SL/Presenter/Part.pm
+++ b/
SL/Presenter/Part.pm
@@
-10,7
+10,7
@@
our @EXPORT = qw(part_picker);
sub part_picker {
my ($self, $name, $value, %params) = @_;
- $value = SL::DB::Manager::Part->find_by(id => $value) if !ref $value;
+ $value = SL::DB::Manager::Part->find_by(id => $value) if
$value &&
!ref $value;
my $id = delete($params{id}) || $self->name_to_id($name);
my $ret =