Commit d6b421b7 authored by jaapjansma's avatar jaapjansma
Browse files

Fixed barnekreft issue 6443: Notes with " around them is not set on field

parent 1735ed0e
......@@ -166,9 +166,9 @@ class CRM_Banking_PluginImpl_Matcher_BkfNewContact extends CRM_Banking_PluginMod
$address_params = $match->getParameter('address_params');
if (!is_array($address_params)) {
$address_params = [
'street_address' => isset($data_parsed['street_address']) ? $data_parsed['street_address'] : null,
'postal_code' => isset($data_parsed['postal_code']) ? $data_parsed['postal_code'] : null,
'city' => isset($data_parsed['city']) ? $data_parsed['city'] : null,
'street_address' => isset($data_parsed['street_address']) ? htmlspecialchars($data_parsed['street_address']) : null,
'postal_code' => isset($data_parsed['postal_code']) ? htmlspecialchars($data_parsed['postal_code']) : null,
'city' => isset($data_parsed['city']) ? htmlspecialchars($data_parsed['city']) : null,
];
}
if (!isset($address_params['location_type_id'])) {
......@@ -179,7 +179,7 @@ class CRM_Banking_PluginImpl_Matcher_BkfNewContact extends CRM_Banking_PluginMod
$contribution_params = [
'payment_instrument_id' => isset($data_parsed['payment_instrument_id']) ? $data_parsed['payment_instrument_id'] : null,
'financial_type_id' => 1, // Gave
'note' => isset($data_parsed['purpose']) ? $data_parsed['purpose'] : null,
'note' => isset($data_parsed['purpose']) ? htmlspecialchars($data_parsed['purpose']) : null,
];
if ($bankKontoCustomFieldId && isset($data_parsed['_NBAN_NO'])) {
$contribution_params['custom_'.$bankKontoCustomFieldId] = $data_parsed['_NBAN_NO'];
......
......@@ -13,8 +13,8 @@
<url desc="Documentation">https://lab.civicrm.org/partners/civicoop/barnekreftforeningen/barnekreftbanking/blob/master/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-04-21</releaseDate>
<version>1.5</version>
<releaseDate>2020-04-28</releaseDate>
<version>1.6</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.13</ver>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment