[Koha-bugs] [Bug 30060] Missing primary key on user_permissions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 15 13:19:35 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30060

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #130533|0                           |1
        is obsolete|                            |

--- Comment #7 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 130616
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130616&action=edit
Bug 30060: Add primary key to user_permissions table

Without primary key DBIC is failing with something like:

GET /api/v1/suggestions/managers: unhandled exception
(DBIx::Class::Exception)<<DBIx::Class::ResultSource::RowParser::_resolve_collapse():
Unable to calculate a definitive collapse co
lumn set for UserPermission (last member of the Borrower -> user_permissions
chain): fetch more unique non-nullable columns at
/kohadevbox/koha/Koha/Objects.pm line 394>>
Koha::REST::Plugin::Exceptions::__ANON__ /
kohadevbox/koha/Koha/REST/Plugin/Exceptions.pm (73)

Test plan:
Execute the atomic update and confirm that the new PK has been added to the
user_permissions table.

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list