I have come across a very peculiar situation and I can not, for the
life of me, figure it out.
CB 3.5
ACF9.01
ORM
SQL Server 2008
This works...
//edit(): default action for editing contacts
public void function edit(required any event, required any rc,
required any prc){
rc.contact = contactService.new();
rc.clients = clientService.list(criteria={activeYN=true},
sortOrder="clientName asc", asQuery=false);
rc.contactTypes =
contactTypeService.findAllWhere(criteria={deactivatedOn=javacast("null","")});
}
This DOES NOT work...
//edit(): default action for editing contacts
public void function edit(required any event, required any rc,
required any prc){
if(1 == 1){
rc.contact = contactService.new();
rc.clients = clientService.list(criteria={activeYN=true},
sortOrder="clientName asc", asQuery=false);
rc.contactTypes =
contactTypeService.findAllWhere(criteria={deactivatedOn=javacast("null","")});
}
}
What I get in my view is that rc.contact is missing...which is stupid
because all I'm adding is an if statement and as we can all clearly
see...that if statement most DEFINITELY resolves to TRUE.
Any thoughts?