Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: Wasted over a day and still can't get enrol_manual_enrol_users to work!!!!

$
0
0

by A W.  

A colleague managed to solve this, transpires the issue is the array must be labelled 'enrolments' so:

$enrols[] = $enrolobj;
$params  = array('enrolments' => $enrols);

works.

Quite how one could have reasonably deduced this from:

Missing required key in single structure: roleid 
i'm not sure but anyway all working now smile

Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>