fix: [sighting:attachOrgToSightings] Stopped double unpacking

feature/workflow-trigger-before-save
Sami Mokaddem 2023-10-18 16:14:52 +02:00
parent cc4a51aea4
commit 90cb068a0e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -642,8 +642,8 @@ class Sighting extends AppModel
unset($sighting['org_id']);
unset($sighting['Organisation']);
} else {
$sighting['org_id'] = $anonOrg['Organisation']['id'];
$sighting['Organisation'] = $anonOrg['Organisation'];
$sighting['org_id'] = $anonOrg['id'];
$sighting['Organisation'] = $anonOrg;
}
}
$sightings[$k] = $sighting;