Bug 34478: ILL OPAC: create -> add_form
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
6d0cb2648e
commit
ed38820597
2 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@
|
|||
</select>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="create" />
|
||||
<input type="hidden" name="op" value="add_form" />
|
||||
<input type="submit" class="btn btn-sm btn-primary" value="Next" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
@ -120,11 +120,11 @@
|
|||
</button>
|
||||
<div id="backend-dropdown-options" class="dropdown-menu nojs" aria-labelledby="ill-backend-dropdown">
|
||||
[% FOREACH backend IN backends %]
|
||||
<a class="dropdown-item" href="/cgi-bin/koha/opac-illrequests.pl?op=create&backend=[% backend | uri %]">[% backend | html %]</a>
|
||||
<a class="dropdown-item" href="/cgi-bin/koha/opac-illrequests.pl?op=add_form&backend=[% backend | uri %]">[% backend | html %]</a>
|
||||
[% END %]
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<a id="ill-new" class="btn btn-primary" href="/cgi-bin/koha/opac-illrequests.pl?op=create&backend=[% backends.0 | html %]">
|
||||
<a id="ill-new" class="btn btn-primary" href="/cgi-bin/koha/opac-illrequests.pl?op=add_form&backend=[% backends.0 | html %]">
|
||||
<i class="fa fa-plus" aria-hidden="true"></i> Create a new request
|
||||
</a>
|
||||
[% END %]
|
||||
|
|
|
@ -68,7 +68,7 @@ my $op = $params->{'op'} // $params->{'method'} // 'list';
|
|||
|
||||
show_param_deprecation_message('"create" op is DEPRECATED in favor of "cud-create".') if ( $op eq 'create' );
|
||||
|
||||
$op = 'cud-create' if $op eq 'create';
|
||||
$op = 'cud-create' if $op eq 'create' || $op eq 'add_form';
|
||||
|
||||
my ( $illrequest_id, $request );
|
||||
if ( $illrequest_id = $params->{illrequest_id} ) {
|
||||
|
|
Loading…
Reference in a new issue