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:
9ce4aee
)
Leeren String in undef für anständige DB-Abfrage umwandeln
author
Moritz Bunkus
<moritz@bunkus.org>
Thu, 9 Dec 2010 16:03:59 +0000
(17:03 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 12 May 2011 08:30:39 +0000
(10:30 +0200)
SL/DB/Helper/TranslatedAttributes.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/TranslatedAttributes.pm
b/SL/DB/Helper/TranslatedAttributes.pm
index
dbb3ae1
..
2c3857c
100644
(file)
--- a/
SL/DB/Helper/TranslatedAttributes.pm
+++ b/
SL/DB/Helper/TranslatedAttributes.pm
@@
-38,7
+38,7
@@
sub _check {
croak "Invalid attribute '${attribute}'" unless $self->can($attribute);
croak "Object has not been saved yet" unless $self->id || $verbatim;
- return
ref($language_id) eq 'SL::DB::Language' ? $language_id->id : $language_id
;
+ return
(ref($language_id) eq 'SL::DB::Language' ? $language_id->id : $language_id) || undef
;
}
sub _find_translation {