RusticiSoftware/SCORMCloud_MoodleModule — pull request #17 by danmarsden (2011-11-14 23:33:55+00:00)
Title: Fix capname

just heard from someone getting this during an upgrade - think this patch should fix it but I haven't tested it.

Duplicate entry 'report/courseoverview:view' for key 'mdl_capa_nam_uix'

INSERT INTO mdl_capabilities ( NAME, CAPTYPE, CONTEXTLEVEL, COMPONENT, RISKBITMASK ) VALUES ( 'report/courseoverview:view', 'read', 10, 'report/scormcloud', 8 )

* line 1565 of lib/dmllib.php: call to debugging()
* line 3363 of lib/accesslib.php: call to insert_record()
* line 154 of lib/adminlib.php: call to update_capabilities()
* line 468 of admin/index.php: call to upgrade_plugins()