@@ -130,9 +130,16 @@ class UpdateGiving extends InlayType {
// Load data as before, should work.
$loadedData=$this->loadAllData($requestBody);
if(!$loadedData||count($loadedData['crs'])!==1){
return[];
Civi::log()->warning("inlayupdategiving error/misuse (public error code IUG2): handleChangeRequest called but we don't have a single cr.",compact('requestBody','loadedData')+[
'inlay'=>$this->getName(),
'testMode'=>$this->config['testMode'],
]);
return['error'=>'Sorry, something went wrong. Please let us know (code IUG2)'];