I have NOT migrated my site. I think it's a great idea - but I had written this site a while back with the old set-up, and at the moment I just don't have the time to re-write the whole site for the new structure - so I've left it as is.
I double-checked under Toolset>Relationships and it said:
Your site has relationships that use the old storage.
Registration is a parent to Evaluator, and a Grandparent to AssignmentResults.
I think I detailed all of this when the code was first written for me - I'll try to repost some of the explanation I posted in that older thread. Below is from the older thread:
the user LabTester is the author of two Registration posts:
Post ID 2433 - which is in lab-categories "Book Lab"
and
Post ID 93255 - which is in lab-categories "Lyric Lab"
If you login as that user:
username: labtester
password: wmt
you will automatically be redirected to this Lab home page with this chart at the top:
"Lyric Lab Student Status Chart view"
Scroll down the page to the chart labelled "Lyric Lab ASSIGNMENT SUMMARY"
then click the "REVIEW" link under "# 1: Overview Assignment
this will take you to an on-the-fly page with the cred form for post ID 2706
scroll down to the bottom where there is a drop down box labelled "Ready to Submit Assignment?" and choose "Assignment is ready for evaluation" from the drop-down box and click "Submit"
This post - ID 2706 - is in the lab-categories "Lyric Lab"
So the way the process needs to work is that it needs to find the Registrations authored by the logged in user (Labtester) - and find the one that is also in lab-categories "Lyric Lab" (which is Post ID 93255).
THEN it needs to find out who that post BELONGS to (Post 93255 belongs to user Larry Cousineau) and send an email to THAT user.
What it was doing instead was sending an email to the user who owns the Registration in the lab-categories "Book Lab" (Elise Dewsberry).
The most recent modification you made to the code is making it now send the email to the currently logged in user.
So what I want is:
- when updating post # 2706 through Cred Form #704
- determine the logged in user (LabTester) and the lab-categories of post #93255 (which is "Lyric Lab")
- go to Registration posts authored by Lab Tester and find the one that is in the same lab-categories (that would be post #93255)
- find out who that post (#93255) belongs to (not is authored by - but BELONGS TO as in PARENT) - who is Larry Cousineau
- send an email to Larry Cousineau
Is that more clear?
Thanks.
Elise