Skip to content

Commit a6c576f

Browse files
committed
Set the objectType on the object if not passed
While the `$object_type` var was being correctly set, the `objectType` key was not being set where the key did not previously exist.
1 parent 1c1c1f5 commit a6c576f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/locker/statements/xAPIValidation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ public function validateObject( $object ){
276276

277277
}else{
278278
$object_type = 'Activity'; //this is the default if nothing defined.
279+
$object['objectType'] = $object_type;
279280
}
280281

281282
//depending on the objectType, validate accordingly.

0 commit comments

Comments
 (0)