Bug 34838: Only check for status in status graph if request has a status
This check is required because when the existing_statuses method checks for the existing status_alias, it'll leave out the status from the query, so the status will be NULL for those particular query results when calling strings_map, throwing a warning Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
4231def42e
commit
3caabe886e
|
|
@ -2073,12 +2073,12 @@ sub strings_map {
|
|||
}
|
||||
|
||||
my $status_string =
|
||||
( exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{name} )
|
||||
( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{name} )
|
||||
? $status_graph_union->{ $self->status }->{name}
|
||||
: $self->status;
|
||||
|
||||
my $status_code =
|
||||
( exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{id} )
|
||||
( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{id} )
|
||||
? $status_graph_union->{ $self->status }->{id}
|
||||
: $self->status;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue