From 1391105a7cce27e6c4086924939f8194897e58d0 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 1 Feb 2008 23:23:46 -0600 Subject: [PATCH] Bug Fixing : Could not add new undefined tag if searchfield>0 For instance, search for tag 290 cannot find. Click on addTag Save Then wouldnot add tag 290 because used UPDATE. Now, if tag is not found then Add tag is done. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- admin/marctagstructure.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index 1cb3c7d9a6..4dbe40c0ad 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -123,9 +123,9 @@ if ($op eq 'add_form') { -default => $data->{'authorised_value'}, ); - if ($searchfield) { - $template->param(action => "Modify tag", - searchfield => $searchfield); + $template->param(searchfield => $searchfield) if ($searchfield); + if ($data eq undef) { + $template->param(action => "Modify tag"); $template->param('heading-modify-tag-p' => 1); } else { $template->param(action => "Add tag"); -- 2.39.5