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

Show whitespace sequences in UI if they're significant #320

Merged

Conversation

pfigel
Copy link
Contributor

@pfigel pfigel commented Feb 12, 2021

In some parts of the UI where values may be used for searches or as part of banking rules, whitespace sequences (i.e. two spaces) may be significant and would cause a rule/search not to match when these values are copied and pasted without the sequence.

HTML's default behaviour is to ignore whitespace sequences. This changes the whitespace handling to show things like two consecutive spaces so that values may be copied safely.

The change is applied to the purpose/detail view on the transaction review page, and the purpose column of statement search.

@jensschuppe jensschuppe added enhancement status:needs work There is code, but it needs additional work before it should be reviewed labels Apr 16, 2021
In some parts of the UI where values may be used for searches
or as part of banking rules, whitespace sequences (i.e. two spaces)
may be significant and would cause a rule/search not to match when
these values are copied and pasted without the sequence.

HTML's default behaviour is to ignore whitespace sequences. This
changes the whitespace handling to show things like two consecutive
spaces so that values may be copied safely.

The change is applied to the purpose/detail view on the transaction
review page, and the purpose column of statement search.
@@ -209,7 +209,7 @@ protected function getCustomDataFieldSuggestions() {
'_BIC' => E::ts('Your BIC (<code>_BIC</code>)'),
'_party_IBAN' => E::ts('Other\'s IBAN (<code>_party_IBAN</code>)'),
'_party_BIC' => E::ts('Other\'s BIC (<code>_party_BIC</code>)'),
'cancel_reason' => E::ts('Other\'s IBAN (<code>cancel_reason</code>)'),
'cancel_reason' => E::ts('Cancel Reason (<code>cancel_reason</code>)'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated, just spotted it and figured might as well fix it.

@pfigel
Copy link
Contributor Author

pfigel commented Aug 12, 2021

Resolved the conflict, should be good to review now.

@pfigel
Copy link
Contributor Author

pfigel commented Apr 14, 2022

ping @bjendres

@bjendres bjendres merged commit c6894b9 into Project60:master Apr 14, 2022
@bjendres
Copy link
Member

Sorry, @pfigel, that fell through the (many) cracks. Thanks!

@bjendres bjendres added this to the CiviBanking 0.8 milestone Apr 14, 2022
@bjendres bjendres added status:fixed The issue has been resolved (usually by committing/merging code) and removed status:needs work There is code, but it needs additional work before it should be reviewed labels Apr 14, 2022
@bjendres
Copy link
Member

released with 0.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement status:fixed The issue has been resolved (usually by committing/merging code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants