welcome message inspite of no new enrolmet was made

welcome message inspite of no new enrolmet was made

by Eva Koperdakova -
Number of replies: 0

Hello,

It is nice to have possibility of welcome message for manual enrolment (in 4.5). I have set it for certain course, message from no-replay address. NICE.

I need to enrol users to certain course via uploaduser.php, using command in cron, the list is in csv file, list is created adding the usernames of those, that should be enrolled. Works well. 

 

 BUT. Users that are already enrolled in that course, there is no new enrolment made for them, no new id in database (in mdl_user_enrolments the first one for certain enrolid is not overwritten, not such a thing exist), but they get welcome message again.

Yes, the parameter of update type is set: --uutype=2 (update existing user's details). Unfortunately, enrolment is not user's detail.

Well, is it a bug? Where there is no new enrolment, should be no welcome message. For now I can only cancel welcome message or send it everyday to those already enrolled (as uploaduser.php will be run everyday).

sad

Eva

Average of ratings: -