projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deutlich machen, dass hier auf das der Klasse entsprechende Profil geprüft wird.
[kivitendo-erp.git]
/
SL
/
RecordLinks.pm
diff --git
a/SL/RecordLinks.pm
b/SL/RecordLinks.pm
index
cef2c4d
..
77086ba
100644
(file)
--- a/
SL/RecordLinks.pm
+++ b/
SL/RecordLinks.pm
@@
-193,7
+193,7
@@
sub delete {
add_token(\@where_tokens, \@where_values, col => $col, val => $params{$col}) if $params{$col};
}
add_token(\@where_tokens, \@where_values, col => $col, val => $params{$col}) if $params{$col};
}
- my $where =
"WHERE ". join ' AND ', map { "($_)" } @where_tokens if scalar @where_tokens
;
+ my $where =
@where_tokens ? "WHERE ". join ' AND ', map { "($_)" } @where_tokens : ''
;
my $query = "DELETE FROM record_links $where";
do_query($form, $dbh, $query, @where_values);
my $query = "DELETE FROM record_links $where";
do_query($form, $dbh, $query, @where_values);
@@
-209,7
+209,7
@@
__END__
=head1 NAME
=head1 NAME
-SL::RecordLinks - Verlinkung von
Lx-Office
Objekten.
+SL::RecordLinks - Verlinkung von
kivitendo
Objekten.
=head1 SYNOPSIS
=head1 SYNOPSIS