From 3de3c10083058df01ea675e9db04b1a67f9713d0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 10 Jan 2007 15:32:31 +0000 Subject: [PATCH] =?utf8?q?Beim=20Anlegen=20einer=20Einheit=20bei=20allen?= =?utf8?q?=20Einheiten=20nachsehen,=20ob=20es=20eine=20Einheit=20mit=20die?= =?utf8?q?sem=20Namen=20bereits=20gibt,=20nicht=20nur=20bei=20den=20Einhei?= =?utf8?q?ten=20gleichen=20Typs.=20Fix=20f=C3=BCr=20Bug=20#494.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/am.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 42aa6d5b2..e39d1193a 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -3618,7 +3618,8 @@ sub add_unit { $form->isblank("new_name", $locale->text("The name is missing.")); $units = AM->retrieve_units(\%myconfig, $form, $form->{"unit_type"}); - $form->show_generic_error($locale->text("A unit with this name does already exist.")) if ($units->{$form->{"new_name"}}); + $all_units = AM->retrieve_units(\%myconfig, $form); + $form->show_generic_error($locale->text("A unit with this name does already exist.")) if ($all_units->{$form->{"new_name"}}); my ($base_unit, $factor); if ($form->{"new_base_unit"}) { -- 2.20.1