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:
fb75f50
)
SL::DB::Manager: find_by_or_create bubbelt jetzt exceptions
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 4 Nov 2016 12:06:38 +0000
(13:06 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 4 Nov 2016 12:41:43 +0000
(13:41 +0100)
SL/DB/Helper/Manager.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/Manager.pm
b/SL/DB/Helper/Manager.pm
index
b4d66da
..
d456e76
100644
(file)
--- a/
SL/DB/Helper/Manager.pm
+++ b/
SL/DB/Helper/Manager.pm
@@
-22,7
+22,10
@@
sub find_by_or_create {
my $class = shift;
my $found;
- eval { $found = $class->find_by(@_); };
+ eval {
+ $found = $class->find_by(@_);
+ 1;
+ } or die $@;
return defined $found ? $found : $class->object_class->new;
}