Bug 31740 - Illrequests table has a foreign key constraint on status_alias
Summary: Illrequests table has a foreign key constraint on status_alias
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-12 11:32 UTC by Nick Clemens (kidclamp)
Modified: 2023-04-27 12:50 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2022-10-12 11:32:14 UTC
I am not sure the intent of this foreign key, however it seems problematic as we can't tie it to a single category

To test:
1 - Add an authorised value for Asort1:
    Authorised value: MONKEY
    Description: Capuchin
2 - Add an authroised value for LOC:
    Authorised value: MONKEY
    Description: Spider
3 - Put an illrequest in the DB:
    INSERT INTO illrequests (branchcode,status,status_alias) VALUES ('CPL','REQUEST_TEST','MONKEY')
4 - Delete one of the authorised values above
5 - Check the DB:
    SELECT status_alias FROM illrequests WHERE status = 'REQUEST_TEST'
6 - Note the status is nulled by deletion of unrelated authroised value