-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix data corruption during delete of soft credits #4138
Conversation
**lurch: attach W-031957 |
Tracking W-031957 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the custom label, please capitalize Contact so the line reads:
"You must enter a Contact for each soft credit."
Also change Please to You must.
Line 5286 in CustomLabels.
…rceFoundation/Cumulus into feature/pyan/manage-psc-page-bug
@sam-knox Thanks - I've fixed the label text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, one more change. Can you change "Please" to "You must"?
@sam-knox how does it look now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great, thank you!
@patrick-yan-sf - Can you look at the release note I wrote for this one? Did I summarize all the changes or is there another validation scenario in addition to the null Contact field one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, just one question on the rendering of the required label
@@ -55,7 +56,7 @@ | |||
rendered="{!($ObjectType[sObjType].fields[field].updateable | |||
|| $ObjectType[sObjType].fields[field].createable && sObj['Id']=='') && $ObjectType[sObjType].fields[field].type != 'boolean'}"> | |||
<apex:outputLabel for="{!$Component.inputx.util_inputfield.inputx}" styleClass="slds-form-element__label" rendered="{!showLabel == true && ftype!='boolean'}" id="lblInputField"> | |||
<apex:outputText rendered="{!IF(required == true, true, NOT($ObjectType[sObjType].fields[field].nillable))}" id="lblInputFieldRequired"> | |||
<apex:outputText rendered="{!IF(overrideRequired, false, IF(required == true, true, NOT($ObjectType[sObjType].fields[field].nillable)))}" id="lblInputFieldRequired"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the field still look required since it's still being required by the backend validation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think you're right - it should still say required as it is required on the backend.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @patrick-yan-sf, nice work!
@rponti-sforg - This is ready for QA. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QE testing is complete for this PR. Tests have passed.
For further testing details, see: https://foundation.lightning.force.com/lightning/r/agf__ADM_Work__c/a2x1E000008LlgvQAC/view
Merging PR and deleting branch.
Turned on validation before clicking on delete button and added a new attribute to the UTIL_FormField component so that validation doesn't prevent deleting of newly created records. No release note needed for this - no change in the UI or existing behavior.
Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata