Is the relationship 'is_active' logic correct?
there is logic here for the condition 'Relationship is Activated'. I'm not really a developer (just an aspiring one), and am trying to understand why this doesn't work for me.
At first I was expecting something like:
if ($relationship['is_active'] == 1) then {
return TRUE;
}
else {
return FALSE;
}
What I've realised (this issue is now edited) is that the logic around the dates is probably there to cover for any relationships that havent't been modified by the scheduled job that processes relationships end dates etc.
I ask because the end dates don't necessarily dictate an active relationship if the relationship has been disabled by hand - if that's the case then the relationship would be disabled, but the end date would still be < now() - so it seems to give a false positive.
Am I making sense, or am I missing something with my lack of knowledge?