From c57ef415561fbdbbf95e45516dc71a643e22369a Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Wed, 7 Nov 2012 15:42:37 +0100 Subject: [PATCH] =?utf8?q?Unn=C3=B6tiger=20Code?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die Form-Variable original_account und die Überprüfung, ob diese mit der Form-Variable accounts übereinstimmt, ist nun nicht mehr nötig, da in save_accounts nach doppelten Kontonummern gesucht wird. Siehe auch Commit 0e494483d38354fdfac2364ef4d0de0874f1ada7 und Ticket #2030. --- bin/mozilla/am.pl | 4 ---- templates/webpages/am/edit_accounts.html | 1 - 2 files changed, 5 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 4e4f05321..f9d299ff5 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -426,10 +426,6 @@ sub save_as_new_account { } $form->{id} = 0; - if ($form->{"original_accno"} && - ($form->{"accno"} eq $form->{"original_accno"})) { - $form->error($locale->text('Account Number already used!')); - } $form->redirect($locale->text('Account saved!')) if (AM->save_account(\%myconfig, \%$form)); $form->error($locale->text('Cannot save account!')); diff --git a/templates/webpages/am/edit_accounts.html b/templates/webpages/am/edit_accounts.html index dcf0be088..1c5e7a969 100644 --- a/templates/webpages/am/edit_accounts.html +++ b/templates/webpages/am/edit_accounts.html @@ -19,7 +19,6 @@ $(function() { - -- 2.20.1