Moodle

Reloading block doesn't update cron field value in mdl_block table

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Greg J Preece added a comment -

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.

Show
Greg J Preece added a comment - 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.
Hide
Martin Dougiamas added a comment -

Yep that workaround is the best way.

Show
Martin Dougiamas added a comment - Yep that workaround is the best way.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: