Bug 21706: (follow-up) remove unused template params
The original patch removed the need to add URLs to the template variables. This patch removes that in the controller. Bonus: fixes 'html' filter in URL replacing it by 'uri'. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
This commit is contained in:
parent
bea8edd972
commit
290f5ea058
|
|
@ -197,9 +197,6 @@ if ($op eq 'add_form') {
|
|||
$row_data{repeatable} = $results->[$i]{'repeatable'};
|
||||
$row_data{mandatory} = $results->[$i]{'mandatory'};
|
||||
$row_data{authorised_value} = $results->[$i]{'authorised_value'};
|
||||
$row_data{subfield_link} = "auth_subfields_structure.pl?tagfield=" . $results->[$i]{'tagfield'} . "&authtypecode=" . $authtypecode;
|
||||
$row_data{edit} = "$script_name?op=add_form&searchfield=" . $results->[$i]{'tagfield'} . "&authtypecode=" . $authtypecode;
|
||||
$row_data{delete} = "$script_name?op=delete_confirm&searchfield=" . $results->[$i]{'tagfield'} . "&authtypecode=" . $authtypecode;
|
||||
push(@loop_data, \%row_data);
|
||||
}
|
||||
$template->param(loop => \@loop_data,
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
[% IF ( else ) %]
|
||||
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<div class="btn-group"><a class="btn btn-default btn-sm" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode | html %]"><i class="fa fa-plus"></i> New tag</a></div>
|
||||
<div class="btn-group"><a class="btn btn-default btn-sm" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode | uri %]"><i class="fa fa-plus"></i> New tag</a></div>
|
||||
</div>
|
||||
|
||||
<h2>Select an authority framework</h2>
|
||||
|
|
|
|||
Loading…
Reference in New Issue