Closed dschach closed 2 years ago
@dschach
I pulled in this request. But when I deploy these changes, I get an error.
Not Serializable: Schema.DescribeFieldResult
Can you guess where this error maybe coming from?
This error comes up when I open a survey record (SurveyManagerPage.page)
Here is the apex debug log apex-07L110000120ccHEAQ.log
It's happening in the following code. Trying to figure out what changed.
It's changes in force-app/main/default/classes/LexInputFieldCompCtrl.cls.
If I revert changes to that class then it works
If I change the following
public Schema.DescribeFieldResult getFieldDescribe() { if (componentFieldDescribe != null) { return componentFieldDescribe; } Schema.SObjectField sf = getSField(); if (sf != null) { componentFieldDescribe = sf.getDescribe(); return componentFieldDescribe; } else { return null; } }
TO
public Schema.DescribeFieldResult getFieldDescribe() { if (componentFieldDescribe != null) { return componentFieldDescribe; } Schema.SObjectField sf = getSField(); if (sf != null) { return sf.getDescribe(); } else { return null; } }
Remove "componentFieldDescribe = sf.getDescribe();" assignment change change with return.
Then it works.
I don't see why it shouldn't but that's where it's failing
Thank you for making the change. This may be blog post-worthy @jrattanpal
@dschach
FYI,
I have published 2.61 version on AppEx with these new changes. I also made some changes in main branch to fix some errors.
Some Apex code is still unused outside of tests; that can be in a future update.