Skip to content

Commit

Permalink
Merge pull request #215 from hadfl/issue
Browse files Browse the repository at this point in the history
issue: default to illumos even if multiple bug IDs are provided
  • Loading branch information
citrus-it authored Apr 28, 2024
2 parents 68974ce + c3d1a48 commit bf51b12
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/OOCEapps/Controller/Issue.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ sub process {

return if !$c->checkToken;

#default to illumos if just a number is provided
$p = "illumos $p" if $p =~ /^\d+$/;

# default to illumos if just numbers and whitespaces are provided
$p = "illumos $p" if $p =~ /^[\d\s]+$/;

my $_p = $c->model->issue->process_p(qw(ooceapps ooceapps), $p, 1);

return $c->render(json => OOCEapps::Mattermost->text("no issue found using search string '$p'"))
return $c->render(json => OOCEapps::Mattermost->text("no issues found using search string '$p'"))
if !blessed $_p;

$c->render_later;
Expand All @@ -36,7 +35,7 @@ __END__
=head1 COPYRIGHT
Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
=head1 LICENSE
Expand Down

0 comments on commit bf51b12

Please sign in to comment.