Bug 34478: Manual fix - change 'phase' to 'op' add cud- - mana-share-report

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2024-02-14 07:13:17 -05:00 committed by Jonathan Druart
parent db040fa49a
commit 7c56ebade7
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@
<li><span class="label">Notes: </span><div id="shared_notes"></div></li>
[% IF (languages_loop) %]
<li>
<input type="hidden" name="phase" value="Share">
<input type="hidden" name="op" value="cud-share">
<label for="mana_language">Language:</label>
<select id="mana_language" name="mana_language">
[% FOREACH languages_loo IN languages_loop %]
@ -93,4 +93,4 @@
</form> <!-- /#mana_share_form -->
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /#mana_share_report -->
</div> <!-- /#mana_share_report -->

View file

@ -598,7 +598,7 @@ elsif ( $op eq 'cud-save' ) {
}
}
elsif ($op eq 'share'){
elsif ($op eq 'cud-share'){
my $lang = $input->param('mana_language') || '';
my $reportid = $input->param('reportid');
my $result = Koha::SharedContent::send_entity($lang, $borrowernumber, $reportid, 'report');