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

settings.help_menu.documentation - Fix missing href "Cannot read property 'match' of undefined" #1628

Merged
merged 1 commit into from
Feb 4, 2020
Merged

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Feb 3, 2020

The code assumes settings.help_menu.documentation contains a href, and fails without it.

But the href is there only if we want to override the link, fixing.

Also, the original code expects the href to always be http://api_location/api/http://the_href.com ,
now it will parse that if present, but fall back to just using the href if not.

(I do not see any ui-classic references to the setting.)

…erty 'match' of undefined"

The code assumes settings.help_menu.documentation contains a href, and fails without it.

But the href is there only if we want to override the link, fixing.

Also, the original code expects the href to always be http://api_location/api/http://the_href.com ,
now it will parse that if present, but fall back to just using the href if not.
@miq-bot
Copy link
Member

miq-bot commented Feb 3, 2020

Checked commit https://github.com/himdel/manageiq-ui-service/commit/638d47107d01e8810f0f3a725046c708784d45e5 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@mzazrivec mzazrivec added the bug label Feb 4, 2020
@mzazrivec mzazrivec self-assigned this Feb 4, 2020
@mzazrivec mzazrivec added this to the Sprint 130 Ending Feb 17, 2020 milestone Feb 4, 2020
@mzazrivec mzazrivec merged commit 8e9cc27 into ManageIQ:master Feb 4, 2020
@himdel himdel deleted the documentation-href-fix branch February 4, 2020 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants