-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CRM-19549 : New pledge data entry page shows hard coded $ for installments #9475
Conversation
jitendrapurohit
commented
Dec 1, 2016
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-19549: New pledge data entry page shows hard coded $ for installments
…ments ---------------------------------------- * CRM-19549: New pledge data entry page shows hard coded $ for installments https://issues.civicrm.org/jira/browse/CRM-19549
… if any ---------------------------------------- * CRM-19549: New pledge data entry page shows hard coded $ for installments https://issues.civicrm.org/jira/browse/CRM-19549
---------------------------------------- * CRM-19549: New pledge data entry page shows hard coded $ for installments https://issues.civicrm.org/jira/browse/CRM-19549
jenkin, retest this please |
} | ||
cj('.currency-symbol').text(val).append(" ").append(eachPaymentAmout); | ||
} | ||
|
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 feel this is an outdated pattern. We no longer use cj.
The way to update this code would be to wrap the whole thing in CRM.$(function(
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.
Updated the PR to replace the outdated cj and also fixed validation error mentioned in point 1. @pradpnayak Can you please take a look ?
I tested above patch. The Currency symbol gets changed when Currency is changed from currency option field. However there are still some error's
|
@pradpnayak Can I assume point 2 is too covered in #9476 ? Since the currency-symbol do get displayed for me on Edit Pledge Form. |
@pradpnayak is this PR ready to merge ? |
i guess # 1 still need to be addressed |
@pradpnayak I see # 1 is included in the update since it works fine for me. Is there something I'm missing? |
Sorry, i will test the PR now . |
During validation error, symbol is not shown for missing currency symbol. But the same is shown with Currency name when currency is switched. |
@pradpnayak As per comment written here, its fine to not show symbols for few currencies. I've opened a new ticket to add missing symbols for them https://issues.civicrm.org/jira/browse/CRM-19733 |
@jitendrapurohit i feel then it should also hold true when we change the currency symbol. Its little confusing when there is a validation error the currency name for missing currency symbol is missing but it appears when we try to change currency from currency drop down. If the core is happy to accept this design, then please go ahead and merge this PR, as i have tested on local and it works very well besides above mentioned issue. |
@pradpnayak fixed the js part to show symbol only when it is present. |
Tested, working fine |