Bug 34478: Manual fix - label-edit-profile (cud-save)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
8cff9b57dd
commit
2fed3f5b79
|
|
@ -56,7 +56,7 @@
|
|||
<h1>New printer profile</h1>
|
||||
[% END%]
|
||||
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="post">
|
||||
<fieldset class="rows"><legend>Profile settings</legend>
|
||||
<ol>
|
||||
<li>
|
||||
|
|
@ -132,10 +132,11 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-save" />
|
||||
<input type="hidden" name="profile_id" value="[% profile_id | html %]" />
|
||||
<input type="submit" class="btn btn-primary" value="Save" />
|
||||
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
|
||||
<input type="hidden" name="op" value="save" />
|
||||
<input type="hidden" name="profile_id" value="[% profile_id | html %]" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ my @label_template = ();
|
|||
|
||||
my $units = get_unit_values();
|
||||
|
||||
if ($op eq 'cud-edit') {
|
||||
if ($op eq 'edit') {
|
||||
$profile = C4::Labels::Profile->retrieve(profile_id => $profile_id);
|
||||
$template_list = get_all_templates( { fields => [ qw( template_id template_code profile_id) ] } );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue