-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
dev/core#5584 Fix soft credit default setting & copy down #31446
base: master
Are you sure you want to change the base?
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
The issue associated with the Pull Request can be viewed at https://lab.civicrm.org/dev/core/-/issues/5584 |
This appears to have been lost unintentionally in the course of https://issues.civicrm.org/jira/browse/CRM-12653
Also consistently return an array
5dcf7e1
to
8ed24be
Compare
Port civicrm/civicrm-core#31446 This is the screen accessed at https://wmff.localhost:32353/civicrm/batch?reset=1 Bug: T371541 Change-Id: I5a1b0233586f1076272479886ce4ec759670bb07
jenkins, test this please |
This seems fine there's just some inconsistency in how soft-credit type works and I'm not sure what it's supposed to be so have put merge-ready:
|
@demeritcowboy from my testing it seemed like you had to enter a soft credit amount to have a soft credit created - were you seeing it create a soft credit even when the soft credit amount was not populated? |
No it's that assuming the intent is to allow a soft credit without a type (which would be consistent with the regular contribution form), then you can't do that with this PR because even if you blank out the type field, it creates it with solicited type. i.e. fill out a batch entry and filling in the soft credit fields, but make the soft credit type blank. When you save, the soft credit has solicited type. |
Overview
this fixes a couple of issues with the soft credit type field in the batch data entry screen
Before
back in 2020 the soft_credit_type field was accidentally changed from optional to required as part of an large change which accidentally dropped off a parameter in this line - meaning that
$extra
is being passed in as$required
- this adds the extra$required = FALSE
to revert thatin addition setting the soft credit contact was causing the soft credit type to be changed to the default value even when it had already been intentionally been set by the user to something else
the copy functionality was missing for the soft credit type field
deprecation warning
note that another notice warning fix on this screen was merged to core today - if you see a notice on size you may not have that patch
After
Technical Details
The copy functionality was removed in the course of https://issues.civicrm.org/jira/browse/CRM-12653 but it is not clear that it was intentional - I commented on possible reasons in-code for the fields for the soft credit contact & soft credit amount to have been excluded from the copy down - basically either because of the proximity of the too-hard-basket or because there was an anticipation of new functionality that never happened.
Comments