Module 'cron' field not updated on upgrade

Module 'cron' field not updated on upgrade

by Davo Smith -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Just checking if this is a bug, before I file it:

If I create a plugin which does not use cron (i.e. in version.php $plugin->cron = 0; ) and then at a later date change my mind and set $plugin->cron = 60; (for example), as well as bumping the version number, then should this new value be automatically inserted into the mdl_modules table?

There appears to be code there for doing this with block upgrades, but not with module upgrades - is this deliberate (and we should be manually setting this value during the upgrade) or an oversight?

(Sorry if this is a bug and it has already been reported, but my attempts to seach for 'cron upgrade' produced 919 results, even when limiting the version to Moodle 2.0 & 2.0.1).

Average of ratings: -