Best practice forum (Archived)

Learning Plan - Workflow Tab

 
Gareth Evans
Learning Plan - Workflow Tab
by Gareth Evans - Thursday, 21 April 2011, 2:48 AM
 

Hi,

Please could you help...  I can't display the Workflow tab under Learning Plans > Manage Templates.  It just displays a blank screen instead.  The address is http://mysite.com/local/plan/template/workflow.php?id=1

Also, the Create New Learning Plan button isn't displayed when I try to create a learning plan as a learner, manager, admin etc.  I'm assuming this could be related?

We're running Totara 1.0.7.  Please could you advise - thanks.

Kind Regards,

Gareth

This forum post has been removed
Thursday, 21 April 2011, 6:13 AM
The content of this forum post has been removed and can no longer be accessed.
Simon Coggins
Re: Learning Plan - Workflow Tab
by Simon Coggins - Thursday, 21 April 2011, 12:07 PM
Group Totara

This is a bug, but it only shows up in sites running PHP5.2 so we missed it with our internal testing. We've produced a patch to fix it in 1.0.8 (due out 26th April), and added a test to catch similar bugs in the future.

If you would like to patch your version before the next release - it's quite a simple fix. Edit the file local/plan/priorityscales/lib.php and replace this line (line 78):

$used = $used || $component_class::is_priority_scale_used($scaleid);

with this:

$used = $used || call_user_func(array($component_classis_priority_scale_used),$scaleid);

Upgrading from PHP5.2 to 5.3 would also work.

Simon


Gareth Evans
Re: Learning Plan - Workflow Tab
by Gareth Evans - Tuesday, 26 April 2011, 2:10 AM
 

Have applied the patch and it seems to work fine.

Thanks for your help!

Gareth

Simon Coggins
Re: Learning Plan - Workflow Tab
by Simon Coggins - Tuesday, 26 April 2011, 2:32 AM
Group Totara

Hi Gareth,

I think there is actually an issue with that patch - 'is_priority_scale_used' should be surrounded by single quotes.

We released version 1.0.8 today which also includes the correct bug fix.

Simon