Use Chargeable field for determining measure in rate editor #2407
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.
previously ChargebackRate(variable
detail
in code) model had relation toChargebackRateDetailMeasure
model. But we removed it and we relations are:ChargebackRate -> ChargeableField -> ChargebackRateDetailMeasure
So we need to get
ChargebackRateDetailMeasure
fromChargeableField
and it was causing that select box was disappeared.before
![screen shot 2017-10-16 at 14 39 58](https://user-images.githubusercontent.com/14937244/31612423-f5a3931c-b27f-11e7-81e2-98017e482f7d.png)
after
![screen shot 2017-10-16 at 14 39 11](https://user-images.githubusercontent.com/14937244/31612425-f7e7163a-b27f-11e7-96a5-86a9034ef552.png)
Testing steps
@miq-bot assign @mzazrivec
@miq-bot add_label bug