Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Cast $params to array if it is not in bbb_init_meeting and bbb_update_meeting.
$node->bbb is after node build an object, but during node creation it seems to be an array. This will issue an error in array_merge() on (at least) node_update. Casting to array seems to be quick solution for that, however using both array and object structures seems not the clearest way to handle bbb-data in general.
Comment | File | Size | Author |
---|---|---|---|
#8 | bbb-cast-params-as-array-if-need-2081365-8.patch | 649 bytes | rpsu |
#6 | bbb-cast-params-as-array-if-need-2081365-6.patch | 727 bytes | rpsu |
#3 | bbb-cast-params-as-array-if-need-2081365-3.patch | 804 bytes | rpsu |
#1 | bbb-cast-params-as-array-if-need-2081365-1.patch | 703 bytes | rpsu |
Comments
Comment #1
rpsuUpdating Priority to major, as automated bbb-node creation fails because of this bug.
It seems like sometimes $node->bbb is object, but sometimes it is an array. Casting solves this type-juggling, but it is just a workaround.
Comment #3
rpsuComment #4
rpsuComment #5
rpsuApparently I did not test this properly. Not yet ready.
Comment #6
rpsuPerhaps this works better, casting objects to arrays in two places.
Comment #8
rpsuComment #8.0
rpsuImproved issue description
Comment #10
sanduhrsCommitted, thanks for the patch.