BIM 2.0 – cleaning up issues – Part 1

While BIM 2.0 is largely working there remains a list of 30 open issues to be addressed. 19 of these are “future” issues. i.e. changes that would be really nice but aren’t necessary for the immediate release of BIM 2.0. The following is the first part of working on the 11 that are of immediate interest.

Of initial interest will be

  • Ensuring deleting a BIM activity removes all data from the bim tables issue #55
  • Error on releasing a marked post – issue #54

Deleting a BIM activity

The mod/bim/lib.php file has a method forum_delete_instance that is meant to do this. The error is a little obvious

if ( ! $DB->delete_records( ‘bim_group_allocation’, array(‘id’=>$bim->id))) {
$result = false;
}

It should be looking for the field id. The field in the other tables for the BIM id is ‘bim’. This is actually a problem that appears to extend back to BIM 1.

Changed. Tested. Fixed.

Error releasing a post

This is a problem when gradebook integration is turned on (why it hasn’t shown up previously). The SQL statement used to extract marks to update the gradebook doesn’t work with Moodle 2.x. Update this and it should work.

That seems to have worked. No more problem. The status has been updated. Time to check if the gradebook has been updated appropriately. Yep. Gradebook updated correctly. Can close this one off.

One thought on “BIM 2.0 – cleaning up issues – Part 1

  1. Pingback: BIM 2.0 – Cleaning up issues – Part 2 « The Weblog of (a) David Jones

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s