Problem/Motivation

The config admin form stores the organization ID + title. The field is saved as a 'number' type but config get/set seems to still save the field value as a string.

Steps to reproduce

  • Install the module
  • Fill out the config form and save
  • Run drush cget drupal_contributions.settings
  • Note that organization_id is enclosed in single quotes
  • Also, running drush contribution:fetch returns "Identifier must be of type int." error

Proposed resolution

Cast the field value as an integer before saving config.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

zopa created an issue. See original summary.

markdorison’s picture

Version: 1.0.x-dev » 1.x-dev

zopa’s picture

Status: Active » Needs review

  • zopa committed 9aa3f6f on 1.x
    Issue #3187741 by zopa: Cast ID as integer when saving form config...
zopa’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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