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:
3b4068e
)
Falschmeldung beim Speichern eines vorhandenen Kontos unterdrücken.
author
Thomas Heck
<theck@linet-services.de>
Thu, 8 Nov 2012 14:13:37 +0000
(15:13 +0100)
committer
Thomas Heck
<theck@linet-services.de>
Thu, 8 Nov 2012 14:13:37 +0000
(15:13 +0100)
behebt #2041
SL/AM.pm
patch
|
blob
|
history
diff --git
a/SL/AM.pm
b/SL/AM.pm
index
6862eb7
..
0e64e5a
100644
(file)
--- a/
SL/AM.pm
+++ b/
SL/AM.pm
@@
-244,11
+244,18
@@
sub save_account {
}
$query = '
- SELECT
- accno
+ SELECT accno
FROM chart
WHERE accno = ?';
- my ($accno) = selectrow_query($form, $dbh, $query, $form->{accno});
+
+ my @values = ($form->{accno});
+
+ if ( $form->{id} ) {
+ $query .= ' AND NOT id = ?';
+ push(@values, $form->{id});
+ }
+
+ my ($accno) = selectrow_query($form, $dbh, $query, @values);
if ($accno) {
$form->error($::locale->text('Account number not unique!'));