Bug 34478: Manual fix - label-edit-layout (cud-save)
Also updated 'cud-edit' in the controller back to 'edit' as it's a 'get' request to display the form.. i.e. read not create, write or update. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e6a59baa82
commit
b3c46d527b
|
|
@ -72,7 +72,7 @@
|
|||
<h1>New label layout</h1>
|
||||
[% END %]
|
||||
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="post">
|
||||
<fieldset class="rows">
|
||||
<ol>
|
||||
<li>
|
||||
|
|
@ -213,10 +213,11 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-save" />
|
||||
<input type="hidden" name="layout_id" value="[% layout_id | html %]" />
|
||||
<input type="submit" class="btn btn-primary" value="Save" />
|
||||
<a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
|
||||
<input type="hidden" name="op" value="save" />
|
||||
<input type="hidden" name="layout_id" value="[% layout_id | html %]" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ sub _select_format_string { # generate field table based on format_string
|
|||
return (\@fields, $field_count);
|
||||
}
|
||||
|
||||
if ($op eq 'cud-edit') {
|
||||
if ($op eq 'edit') {
|
||||
warn sprintf("Error performing '%s': No 'layout_id' passed in.", $op) unless ($layout_id);
|
||||
$layout = C4::Labels::Layout->retrieve(layout_id => $layout_id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue