Actions

Talk

System Administrator's Guide/Moodle//Mahara Integration/View Submission: Difference between revisions

From Mahara Wiki

(Created page with "== Code correction == An error occurs because $userid variable is not set in ./mod/assignment/type/mahara/assigment.class.php I suggest a correction line 283 // MODIF JF …")
 
 
Line 45: Line 45:


Not any of mod/mahara/rpclib.php/ methods does exist !
Not any of mod/mahara/rpclib.php/ methods does exist !
By the way this does not affect plugin... Any commentary would be helpfull.
JF.

Latest revision as of 22:43, 7 November 2011

Code correction

An error occurs because $userid variable is not set in ./mod/assignment/type/mahara/assigment.class.php

I suggest a correction line 283

// MODIF JF
       $userid=$USER->id;
       $grading_info = grade_get_grades($this->course->id, 'mod', 'assignment', $this->assignment->id, $userid);


Unknown method

Furthermore it seams to me that few Moodle 1.9 Mahara plugin code have been let by error in Moodle 2 Mahara plugin :

Script (Moodle 2) ./mod/assignment/type/mahara/assigment.class.php :

LINE 337 
           $mnetrequest->set_method('mod/mahara/rpclib.php/get_views_for_user');
LINE 344
          $error = "RPC mod/mahara/rpclib.php/get_views_for_user:
"; LINE 392 $mnetrequest->set_method('mod/mahara/rpclib.php/release_submitted_view');

BUT :

'mod/mahara/rpclib.php' does not exist !


./local/mahara/db/mnet.php LINE 15 to 24

  $subscribes = array(
   'mahara' => array(
       'get_views_for_user' => 'mod/mahara/rpclib.php/get_views_for_user',
       'submit_view_for_assignment' => 'mod/mahara/rpclib.php/submit_view_for_assessment',
       'release_submitted_view' => 'mod/mahara/rpclib.php/release_submitted_view',
       'get_groups_for_user' => 'mod/mahara/rpclib.php/get_groups_for_user',
       'get_notifications_for_user' => 'mod/mahara/rpclib.php/get_notifications_for_user',
       'get_watchlist_for_user' => 'mod/mahara/rpclib.php/get_watchlist_for_user',
   ),
);

Not any of mod/mahara/rpclib.php/ methods does exist !

By the way this does not affect plugin... Any commentary would be helpfull.

JF.