Bug 34478: Manual fix - label-edit-template (cud-save)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
b3c46d527b
commit
8cff9b57dd
2 changed files with 5 additions and 4 deletions
|
@ -55,7 +55,7 @@
|
|||
<h1>New label template</h1>
|
||||
[% END %]
|
||||
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="get">
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="post">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<fieldset class="rows">
|
||||
|
@ -177,11 +177,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<fieldset class="action">
|
||||
<input type="submit" class="btn btn-primary" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
|
||||
<input type="hidden" name="op" value="save" />
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-save" />
|
||||
[% IF ( template_id ) %]
|
||||
<input type="hidden" name="template_id" value="[% template_id | html %]" />
|
||||
[% END %]
|
||||
<input type="submit" class="btn btn-primary" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ my $profile_list = undef;
|
|||
|
||||
my $units = get_unit_values();
|
||||
|
||||
if ($op eq 'cud-edit') {
|
||||
if ($op eq 'edit') {
|
||||
$label_template = C4::Labels::Template->retrieve(template_id => $template_id);
|
||||
$profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => { template_id => [ $template_id, '' ], creator => 'Labels'} } );
|
||||
push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'};
|
||||
|
|
Loading…
Reference in a new issue