Fix bug for change visibility action from personal agenda- refs CT#7381

Please use cid instead of course_id