Fatal Error on editting Financial Transaction
In 5.3.0 tested on Dev site and civicrmfr.org demo
- Create a completed contribution.
- Edit contribution by increasing contribution amount and net amount. This will create a new financial transaction with NO Payment Instrument.
- Edit new Financial Transaction to add Payment Instrument. Click Update - Get Spinning Logo Error
ConfigAndLog Records this error.
$Fatal Error Details = array(3) {
["message"]=>
string(65) "Mandatory key(s) missing from params array: payment_instrument_id"
["code"]=>
NULL
["exception"]=>
object(CiviCRM_API3_Exception)#323 (8) {
["extraParams":"CiviCRM_API3_Exception":private]=>
array(6) {
["fields"]=>
array(1) {
[0]=>
string(21) "payment_instrument_id"
}
["error_code"]=>
string(17) "mandatory_missing"
["entity"]=>
string(13) "FinancialTrxn"
["action"]=>
string(6) "create"
["is_error"]=>
int(1)
["error_message"]=>
string(65) "Mandatory key(s) missing from params array: payment_instrument_id"
}
["message":protected]=>
string(65) "Mandatory key(s) missing from params array: payment_instrument_id"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(65) "/server/public_html/sites/all/modules/civicrm/api/api.php"
["line":protected]=>
int(45)
["trace":"Exception":private]=>
array(15) {
[0]=>
array(4) {
["file"]=>
string(88) "/server/public_html/sites/all/modules/civicrm/CRM/Financial/Form/PaymentEdit.php"
["line"]=>
int(207)
["function"]=>
string(12) "civicrm_api3"
["args"]=>
array(3) {
[0]=>
string(13) "FinancialTrxn"
[1]=>
string(6) "create"
[2]=>
array(9) {
["to_financial_account_id"]=>
string(2) "23"
["trxn_date"]=>
string(19) "2018-07-16 17:23:00"
["total_amount"]=>
float(-10)
["fee_amount"]=>
float(0)
["net_amount"]=>
float(-10)
["currency"]=>
string(3) "USD"
["is_payment"]=>
string(1) "1"
["status_id"]=>
string(1) "1"
["contribution_id"]=>
string(5) "30997"
}
}
}
[1]=>
array(6) {
["file"]=>
string(88) "/server/public_html/sites/all/modules/civicrm/CRM/Financial/Form/PaymentEdit.php"
["line"]=>
int(175)
["function"]=>
string(6) "submit"
["class"]=>
string(30) "CRM_Financial_Form_PaymentEdit"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
array(4) {
["id"]=>
string(5) "39513"
["payment_instrument_id"]=>
string(1) "3"
["trxn_id"]=>
string(0) ""
["trxn_date"]=>
string(19) "2018-07-16 17:23:00"
}
}
}