Lines 136-146
sub statusalias {
Link Here
|
136 |
# We can't know which result is the right one if there are multiple |
136 |
# We can't know which result is the right one if there are multiple |
137 |
# ILLSTATUS authorised values with the same authorised_value column value |
137 |
# ILLSTATUS authorised values with the same authorised_value column value |
138 |
# so we just use the first |
138 |
# so we just use the first |
139 |
return Koha::AuthorisedValues->search({ |
139 |
return Koha::AuthorisedValues->search( |
140 |
branchcode => $self->branchcode, |
140 |
{ |
141 |
category => 'ILLSTATUS', |
141 |
category => 'ILLSTATUS', |
142 |
authorised_value => $self->SUPER::status_alias |
142 |
authorised_value => $self->SUPER::status_alias |
143 |
})->next; |
143 |
}, |
|
|
144 |
{}, |
145 |
$self->branchcode |
146 |
)->next; |
144 |
} |
147 |
} |
145 |
|
148 |
|
146 |
=head3 illrequestattributes |
149 |
=head3 illrequestattributes |
Lines 231-241
sub status_alias {
Link Here
|
231 |
# We can't know which result is the right one if there are multiple |
234 |
# We can't know which result is the right one if there are multiple |
232 |
# ILLSTATUS authorised values with the same authorised_value column value |
235 |
# ILLSTATUS authorised values with the same authorised_value column value |
233 |
# so we just use the first |
236 |
# so we just use the first |
234 |
my $alias = Koha::AuthorisedValues->search({ |
237 |
my $alias = Koha::AuthorisedValues->search( |
235 |
branchcode => $self->branchcode, |
238 |
{ |
236 |
category => 'ILLSTATUS', |
239 |
category => 'ILLSTATUS', |
237 |
authorised_value => $self->SUPER::status_alias |
240 |
authorised_value => $self->SUPER::status_alias |
238 |
})->next; |
241 |
}, |
|
|
242 |
{}, |
243 |
$self->branchcode |
244 |
)->next; |
245 |
|
239 |
if ($alias) { |
246 |
if ($alias) { |
240 |
return $alias->authorised_value; |
247 |
return $alias->authorised_value; |
241 |
} else { |
248 |
} else { |