Skip to content
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/financial#172 - Warning when saving a contribution with a recognition date #19948

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Mar 30, 2021

Overview

https://lab.civicrm.org/dev/financial/-/issues/172

Before

  1. Turn on deferred revenue in civicontribute settings.
  2. Create a contribution and fill in the recognition date.
Warning: array_filter() expects parameter 1 to be array, string given in CRM_Contribute_Form_Contribution::formRule() (line 914 of /home/jenkins/bknix-dfl/build/core-19940-91yka/web/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution.php).
    Warning: count(): Parameter must be an array or an object that implements Countable in CRM_Contribute_Form_Contribution::formRule() (line 914 of /home/jenkins/bknix-dfl/build/core-19940-91yka/web/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution.php).

After

Ok

Technical Details

I think this is leftover from datepicker switches? It's checking that the date has a year and a month, but it's not separate components now.

Comments

@civibot
Copy link

civibot bot commented Mar 30, 2021

(Standard links)

@civibot civibot bot added the master label Mar 30, 2021
@eileenmcnaughton
Copy link
Contributor

I agree

@eileenmcnaughton eileenmcnaughton merged commit ee78445 into civicrm:master Apr 5, 2021
@demeritcowboy demeritcowboy deleted the defrev-recdate branch April 5, 2021 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants