Koha/Koha/Club
Tomas Cohen Arazi f259355895 Bug 27330: (follow-up) Cleanup missed on bug 23843
This patch makes some cleanup missed on bug 23843. The catch condition
on the controller was copied and pasted from other controller and should
be avoided unless there's a known case that needs special handling.
Otherwise it will be catched by the $c->unhandled_exception call.

All the old mappings were inadvertedly kept in the controller as well as
the (unused) _to_api method.

The base class is also cleaned from unnecessary mappings. Only mapped
things need to be added.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/clubs_holds.t \
           t/db_dependent/Koha/Club/Hold.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-01 16:36:38 +01:00
..
Enrollment Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Hold Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Template Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Enrollment.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Enrollments.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Field.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Fields.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Hold.pm Bug 27330: (follow-up) Cleanup missed on bug 23843 2021-02-01 16:36:38 +01:00
Holds.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Template.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Templates.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00