-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix "Set Custom Value" on Avalara Usage Type #2107
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2690dc8
Get correct id value
impactmass 8ea2075
Prevent autoform from removing old values
impactmass 36807cb
Roll back. Autoform still resetting to old values
impactmass 849c757
Prevent autoform from overriding custom val
impactmass 8b58fcc
Merge branch 'development' into seun-avalara-customtype-fix-2101
impactmass 800667d
Merge branch 'development' into seun-avalara-customtype-fix-2101
impactmass 1479ff3
show input field for custom; pre-fill with existing custom val
impactmass 70d68c9
Adjust comment
impactmass ccfa309
Adjust comment
impactmass f4f4bfd
Update form reset
impactmass 2272359
Merge branch 'development' into seun-avalara-customtype-fix-2101
impactmass f514e20
Refactor subscription
impactmass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticing this now, but should thus subscription be in the helper? Seems like it should be in an
onCreated
event?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I believe you mentioned this before.
The reason the subscription was done here is because when the subscription is done outside of the
account()
helper, Autoform doesn't pick the new member data change that happens when the "Manage" button is clicked for another member.Hence the form data remains at the very first member info that was clicked when the taxsetting form was created.
But I'll confirm this again and update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that was why we created that separate Publication?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We created a separate publication so we can have a publication that takes in a userId and just returns the account with that id. Which is different from the way the existing
Accounts
publication works.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update:
I was wrong. The subscription can be moved into
onCreated
and it worked as expected (like you said).I'll modify it.