EventID lost while editing feeselection due to change in civirules 2.20
When editing and saving a participant record from the feeselection screen civirules throws a fatal error. I am using CiviCRM 5.34 and Civirules 2.21. I tried to go back some versions earlier and interestingly I found out I experience the problem since civirules 2.20. With 2.19 I have no problem saving the event fee selection.
$Fatal Error Details = array:3 [
"message" => "Expected one Event but found 25"
"code" => null
"exception" => CiviCRM_API3_Exception {#453
-extraParams: array:4 [
"count" => 25
"is_error" => 1
"error_message" => "Expected one Event but found 25"
"error_code" => "undefined"
]
#message: "Expected one Event but found 25"
#code: 0
#file: "/var/www/vhosts/xyz/webroot/sites/all/modules/civicrm/api/api.php"
#line: 133
trace: {
/var/www/vhosts/xyz/webroot/sites/all/modules/civicrm/api/api.php:133 {
› if (is_array($result) && !empty($result['is_error'])) {
› throw new CiviCRM_API3_Exception($result['error_message'], CRM_Utils_Array::value('error_code', $result, 'undefined'), $result);
› }
}
[debug] $backTrace = #0 /var/www/vhosts/xyz/webroot/sites/all/modules/civicrm/CRM/Core/Error.php(433): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/vhosts/xyz/webroot/sites/all/modules/civicrm/CRM/Core/Invoke.php(39): CRM_Core_Error::handleUnhandledException(Object(CiviCRM_API3_Exception))
#2 /var/www/vhosts/xyz/webroot/sites/all/modules/civicrm/drupal/civicrm.module(458): CRM_Core_Invoke::invoke((Array:4))
#3 /var/www/vhosts/xyz/webroot/includes/menu.inc(527): civicrm_invoke("event", "participant", "feeselection")