Currently we do a SQL search for patrons, then fetch the patron object for each borrowernumber individually, then fetch related objects If we use Koha::Patrons directly we can prefetch related object and reduce the number of calls to the DB
Created attachment 125374 [details] [review] Bug 29125: Add primary key to user_permissions table
Created attachment 125375 [details] [review] Bug 29125: DBIC updates
Created attachment 125376 [details] [review] Bug 29125: Use patron objects in C4::Utils::DataTables::Members.pm
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'me.`surname`' in 'where clause' at /kohadevbox/koha/Koha/Objects.pm line 335 To recreate /cgi-bin/koha/members/members-home.pl Search for: "koh" Search field: "surname" Click "Search"
Created attachment 125979 [details] [review] Bug 29125: Fix 'Unknown column'
Bug 30055 will make this bug obsolete.
I am going to move the following patch to bug 30060: Bug 29125: Add primary key to user_permissions table
*** This bug has been marked as a duplicate of bug 30063 ***