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:
Martin Renvoize 2024-01-22 11:56:37 +00:00 committed by Jonathan Druart
parent 8cff9b57dd
commit 2fed3f5b79
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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) ] } );
}