Problem/Motivation
Trying to create new fund and keep getting this error:
Drupal\Core\Database\InvalidQueryException: Query condition 'commerce_payment_method__currency.currency_target_id IN ()' cannot be empty. in Drupal\Core\Database\Query\Condition->condition() (line 105 of core/lib/Drupal/Core/Database/Query/Condition.php).
Drupal\Core\Database\Query\Select->condition('commerce_payment_method__currency.currency_target_id', Array, 'IN') (Line: 61)
Drupal\Core\Entity\Query\Sql\Condition->compile(Object) (Line: 172)
Drupal\Core\Entity\Query\Sql\Query->compile() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 577)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 222)
Drupal\commerce_funds\PluginForm\Funds\BalanceMethodAddForm->loadPaymentMethod('4', NULL) (Line: 142)
Drupal\commerce_funds\PluginForm\Funds\BalanceMethodAddForm->validateConfigurationForm(Array, Object) (Line: 153)
Drupal\commerce_payment\Plugin\Commerce\InlineForm\PaymentGatewayForm->validateInlineForm(Array, Object) (Line: 144)
Drupal\commerce\Plugin\Commerce\InlineForm\InlineFormBase::runValidate(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 280)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3229112.patch | 681 bytes | vhin0210 |
Comments
Comment #2
vhin0210 commentedComment #3
vhin0210 commentedComment #5
aporieReproduced and tested.
Thanks for the patch.