Error thrown when 'remove'ing from CiviContribute Batch
Overview
Civi throws an error when working with Accounting Batches. It's kind of hard to pin down - the front end gives the default / standard / very helpful
No response from the server. Check your internet connection and try reloading the page.
Reproduction steps
- add a new accounting Batch (Contributions > Accounting Batches > New Batch)
- Assign a contribution to the batch
- try to remove the contribution from the batch
- at this point the message is displayed:
message, although ConfigAndLog does give a bit more, i.e.:
$Fatal Error Details = array:3 [ "message" => "Cannot delete EntityBatch with no id." "code" => null "exception" => CRM_Core_Exception {#2039 (closed) -errorData: array:1 [ "error_code" => 0 ] #cause: null -_trace: null #message: "Cannot delete EntityBatch with no id." #code: 0 #file: "/var/www/html/drupal7/sites/all/modules/civicrm/CRM/Core/DAO.php" #line: 958 trace: { /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Core/DAO.php:958 { › if (empty($record['id'])) { › throw new CRM_Core_Exception("Cannot delete {$entityName} with no id."); › } } /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Batch/BAO/EntityBatch.php:39 { …} /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Financial/Page/AJAX.php:207 { …} /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Utils/REST.php:266 { …} /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Utils/REST.php:550 { …} /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php:279 { …} /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php:69 { …} /var/www/html/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php:36 { …} /var/www/html/drupal7/sites/all/modules/civicrm/drupal/civicrm.module:458 { …} /var/www/html/drupal7/includes/menu.inc:527 { …} /var/www/html/drupal7/index.php:21 { …} } } ]
This has alr3eady been raised on stackechange
Current behaviour
Expected behaviour
The item is removed from the batch
Environment information
- reproduced on dmaster
- using Chromium locally on a Debian box