You need to sign in to do that
Don't have an account?

Get fatal error on field in Apex Class extension
Get this fatal error when run VFpage due to problem with extension:
14:16:49.0 (69545363)|FATAL_ERROR|System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Training_Class__c.Sign_up_Deadline__c Class.IAC_Lobby_Day_Extension.<init>: line 142, column 1
Line 142 isinPast=(course.Sign_up_Deadline__c < date.today()? true:false);
When run VF page get authorization request for Guest User - although no such authorization is indicated in code.
14:16:49.0 (69545363)|FATAL_ERROR|System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Training_Class__c.Sign_up_Deadline__c Class.IAC_Lobby_Day_Extension.<init>: line 142, column 1
Line 142 isinPast=(course.Sign_up_Deadline__c < date.today()? true:false);
When run VF page get authorization request for Guest User - although no such authorization is indicated in code.
Line 142 from the IAC_Lobby_Day_Eextension: isInPast = ( course.Sign_up_Deadline__c < date.today() ? true : false ) ;
Line 98 from the IAC_Register_Extension: isInPast = ( course.Sign_up_Deadline__c < date.today() ? true : false ) ;
Used to ensure that the registration is not occuring after the cut off date.