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)

CommentFileSizeAuthor
#2 3229112.patch681 bytesvhin0210

Comments

vhin0210 created an issue. See original summary.

vhin0210’s picture

StatusFileSize
new681 bytes
vhin0210’s picture

Status: Active » Needs review

  • Aporie committed c6b7da1 on 2.x authored by vhin0210
    Issue #3229112 by vhin0210: Drupal\Core\Database\InvalidQueryException:...
aporie’s picture

Status: Needs review » Fixed

Reproduced and tested.

Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.