Bug 35616: Update catalog concerns to set/filter on source

This patch updates the catalog concerns feature to respect the new
'source' field in the API.  We both set the source for new ticket
submissions and use it for filtering in the corresponding display
tables.

To test:
1) Nothing should noticably change here.. follow the test plan for bug
   31028 and confirm all continues to work as described there.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2023-12-20 14:52:10 +00:00 committed by Katrin Fischer
parent 576b253782
commit 47a75e62e6
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
4 changed files with 5 additions and 1 deletions

View File

@ -1023,6 +1023,7 @@
return;
}
},
source: 'catalog',
biblio_id: [% biblionumber | uri %]
};

View File

@ -90,7 +90,8 @@
} else {
return;
}
}
},
source: 'catalog'
};
var tickets_url = '/api/v1/tickets';

View File

@ -17,6 +17,7 @@ $(document).ready(function() {
let reporter_id = $('#concern_reporter').val();
let params = {
source: 'catalog',
title: concern_title,
body: concern_body,
biblio_id: biblio_id,

View File

@ -35,6 +35,7 @@ $(document).ready(function() {
let reporter_id = $('#concern_reporter').val();
params = {
source: 'catalog',
title: concern_title,
body: concern_body,
biblio_id: biblio_id,