Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: default to illumos even if multiple bug IDs are provided #215

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading