Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.8.1
-
Fix Version/s: None
-
Component/s: Blocks
-
Labels:None
-
Database:MySQL
-
Affected Branches:MOODLE_18_STABLE
Description
I created a new block, then I later tried to add $this->cron = 3600; to the init function and bump the version number but the fact I've added a setting for the cron doesn't get updated in the mdl_blocks table. However if I remove the block and then reinstall it, the cron value is added to the table.
Also spotted in Moodle 1.7.7. This is a real pain if you add cron functionality to a block after initial release.
Possible workaround: use upgrade.php to drop the new cron value straight into the block's entry in mdl_block. Not nice, but will get around this until it's fixed.