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

Fixes #27662 - template inputs - adding field #6991

Merged
merged 1 commit into from Sep 5, 2019

Conversation

ezr-ondrej
Copy link
Member

Proper fix for #6955, fixes the new template inputs identification in javascript.
f.index is set by Rails if the builder is fields_for

@theforeman-bot
Copy link
Member

Issues: #27662

@lzap
Copy link
Member

lzap commented Sep 3, 2019

@tbrisker would you mind taking a look since you reviewed and merged the referred PR?

@@ -42,10 +42,11 @@ export const pollReportData = url => {
export const inputValueOnchange = input => {
const searchValue = input.value === 'search';
const plainValue = input.value === 'plain';
const inputId = input.dataset.item || '';
const inputId = input.dataset.item;
const $fields = $(input).closest('.fields');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just narrows the scope, not to search everywhere.

@ezr-ondrej
Copy link
Member Author

[test foreman]

adamruzicka
adamruzicka previously approved these changes Sep 5, 2019
Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely

@ezr-ondrej
Copy link
Member Author

[test foreman]

@ares
Copy link
Member

ares commented Sep 5, 2019

@ezr-ondrej maybe rebase is needed? FTR there was ~150 tests failures in ProxyApiBmcTest which is 99.99% unrelated

@ezr-ondrej
Copy link
Member Author

Rebased.

@ezr-ondrej
Copy link
Member Author

ezr-ondrej commented Sep 5, 2019

💚

@xprazak2 xprazak2 merged commit 5d4da11 into theforeman:develop Sep 5, 2019
@xprazak2
Copy link
Contributor

xprazak2 commented Sep 5, 2019

Thanks everyone!

@ezr-ondrej ezr-ondrej deleted the fix_template_inputs branch April 1, 2020 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants