[Koha-bugs] [Bug 20581] Allow manual selection of custom ILL request statuses

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 14 07:44:54 CET 2019


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

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

--- Comment #212 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 85092
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=85092&action=edit
Bug 20581: (follow-up) Overload status_alias

We need Koha::Illrequest->status_alias to return the correct authorised value.
Since the foreign key uses a non-unique column, we need to take into
account the authorised value category too.

This patch overloads status_alias with some additional logic that
considers the request's branch and the authorised value category to
attempt to return the correct value.

The same logic is applied to the custom statusalias method, which
returns the entire AuthorisedValue object

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

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

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


More information about the Koha-bugs mailing list