Fixed student note add/edit; use smsStudentStubId to get the studentId