Fix a bug preventing existing tag modification in MARC Framework
authorFrederic Demians <f.demians@tamil.fr>
Fri, 7 Mar 2008 06:43:40 +0000 (07:43 +0100)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 8 Mar 2008 17:19:04 +0000 (11:19 -0600)
It wasn't possible to edit an existing tag. The program was idenfifying
tag modification as a tag creation.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
admin/marctagstructure.pl

index 4dbe40c..5a24794 100755 (executable)
@@ -124,7 +124,7 @@ if ($op eq 'add_form') {
                        );
 
   $template->param(searchfield => $searchfield) if ($searchfield);
-       if ($data eq undef) {
+       if ($searchfield) {
                $template->param(action => "Modify tag");
                $template->param('heading-modify-tag-p' => 1);
        } else {