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

regen.sh - Fix stale function call in sql/GenerateData.php #10706

Merged
merged 1 commit into from
Jul 20, 2017

Conversation

totten
Copy link
Member

@totten totten commented Jul 20, 2017

In #10463, the
function signature of getInstrumentFinancialAccount() changed slightly -- in that
the parameter became mandatory.

Grepping for other calls to getInstrumentFinancialAccount() shows that one of the unit-tests
works with example input 4, so this does the same.

Before

Running "regen.sh" fails -- because getInstrumentFinancialAccount is called without a parameter.

After

Running "regen.sh" completes -- because getInstrumentFinancialAccount is called with 4.

Acceptance Prompts

  • The example data produced by regen.sh should contain suitable/similar values for financial records.
  • Determine whether 4 is a suitable value.

(Ping participants from previous PR: @pradpnayak @monishdeb @colemanw)

In [civicrm#10463](civicrm#10463), the
function signature of `getInstrumentFinancialAccount()` changed slightly -- in that
the parameter became mandatory.

Grepping for other calls to `getInstrumentFinancialAccount()` shows that one of the unit-tests
works with example input `4`, so this does the same.

Before
======

Running "regen.sh" fails -- because `getInstrumentFinancialAccount` is called without a parameter.

After
=====

Running "regen.sh" completes -- because `getInstrumentFinancialAccount` is called with `4`.

Acceptance Prompts
==================

 * The example data produced by `regen.sh` should contain suitable/similar values for financial records.
 * Determine whether `4` is a suitable value.
@colemanw colemanw merged commit c1aaf44 into civicrm:master Jul 20, 2017
@totten totten deleted the master-regen-finact branch July 20, 2017 16:01
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.

3 participants