Bug 34478: Fix op variable in item circulation alerts

The AJAX call in the template still used "action" instead of
"op".

The patch also fixes references to "action" in the POD and corrects
"toggle" to "cud-toggle".

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2024-02-16 13:06:55 +00:00 committed by Jonathan Druart
parent 1825c93fe4
commit 0af9d12027
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 3 deletions

View file

@ -146,7 +146,7 @@ patron category, and item type, this is where that policy would be set.
=head2 URLs
=head3 ?action=show
=head3 ?op=show
Display a branches item circulation alert preferences.
@ -163,7 +163,7 @@ branch '*' is used.
=head3 ?action=toggle
=head3 ?op=cud-toggle
Toggle a preference via AJAX

View file

@ -211,7 +211,7 @@
url : '/cgi-bin/koha/admin/item_circulation_alerts.pl',
type : 'POST',
dataType : 'json',
data : { action: 'cud-toggle', id: id, branch: $branch },
data : { op: 'cud-toggle', id: id, branch: $branch },
success : function(response){
if ($branch == '*' && response.classes.match(/default/)) {
td.html(disabledForAll);