Switching from building 'edit' link in the script to building it in the template...
authoroleonard <oleonard>
Thu, 10 Feb 2005 22:42:56 +0000 (22:42 +0000)
committeroleonard <oleonard>
Thu, 10 Feb 2005 22:42:56 +0000 (22:42 +0000)
A change to the template is also required.

admin/marc_subfields_structure.pl

index c8e60f3..a1e724d 100755 (executable)
@@ -389,7 +389,9 @@ if ($op eq 'add_form') {
                push(@loop_data, \%row_data);
        }
        $template->param(loop => \@loop_data);
-       $template->param(edit => "<a href=\"$script_name?op=add_form&amp;tagfield=$tagfield&frameworkcode=$frameworkcode\">");
+       $template->param(edit_tagfield => $tagfield,
+               edit_frameworkcode => $frameworkcode);
+               
        if ($offset>0) {
                my $prevpage = $offset-$pagesize;
                $template->param(prev =>"<a href=\"$script_name?offset=$prevpage\">");