Hi,

I am not able to use 'Display the Coupon Code field on Recurly.js subscription forms.'. This gives a fatal error on form submit. I am attaching a patch for this.

PHP Fatal error: Cannot use object of type FormState as array in RecurlyJsSubscribeForm.php on line 158

Comments

NarendraR created an issue. See original summary.

narendrar’s picture

StatusFileSize
new2.08 KB

Please check if this patch works.

markdorison’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.99 KB

Great catch.

Patch failed to apply cleanly. Re-roll.

markdorison’s picture

Title: PHP Fatal error: Cannot use object of type Drupal\\Core\\Form\\FormState as array in ../modules/recurly/modules/recurlyjs/src/Form/RecurlyJsSubscribeForm.php on line 158 » PHP Fatal error: Cannot use object of type FormState as array in RecurlyJsSubscribeForm.php on line 158
markdorison’s picture

Title: PHP Fatal error: Cannot use object of type FormState as array in RecurlyJsSubscribeForm.php on line 158 » Cannot use object of type FormState as array in RecurlyJsSubscribeForm
Issue summary: View changes

  • markdorison committed a2aaadb on 8.x-1.x authored by NarendraR
    Issue #2890705 by NarendraR, markdorison: Cannot use object of type...
markdorison’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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