Summary: | Notices table shows duplicate notice entries if database rows mismatch on certain fields | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Notices | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | caroline.cyr-la-rose, pedro.amorim |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37891 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 30555 | ||
Bug Blocks: |
Description
Katrin Fischer
2023-10-11 13:25:03 UTC
I think the grouping should probably be on something else than the name (the letter code??). In my SQL files for translating db updates, I added a line to update the letter name in the english letter to the french name to counter this. I think it's because it displays the title in the table, so when we group on the other criteria you get them as separate entries. It's easy to fix if you have db access, much harder for everyone else. Might still be good to do some clean-up. Now this also happens when the name of a notice is updated in the GUI, which makes this a much less avoidable issue :( *** This bug has been marked as a duplicate of bug 37891 *** Putting this back to 'NEW' as discussion here appears to go more in-depth than what's being fixed in bug 37891. (In reply to Caroline Cyr La Rose from comment #1) > I think the grouping should probably be on something else than the name (the > letter code??). > > In my SQL files for translating db updates, I added a line to update the > letter name in the english letter to the french name to counter this. The grouping is using name due to ONLY_FULL_GROUP_BY. Mattermost discussion: https://chat.koha-community.org/koha-community/pl/5xmw3emh9bduxbm51fkcg34k9y (In reply to Katrin Fischer from comment #3) > Now this also happens when the name of a notice is updated in the GUI, which > makes this a much less avoidable issue :( Bug 37891 should fix that. I've updated the bug title, but I'm open to better suggestions. I believe the table will show duplicate entries of notices if any of the following fields mismatch across the different instances of message_transport_type for each code (letter.pl): GROUP BY branchcode,module,code,name,branchname This should ideally no longer be reproduceable through the UI after bug 37891, but it is still possible by updating the database manually to meet these conditions, and there are possibly active Koha instances with this problem currently. Mattermost initial discussion (for bug 37891) but it applies here also: https://chat.koha-community.org/koha-community/pl/dqheyewpd7nqfjwom8f8khom7w |