Skip to content

Commit

Permalink
Fix a formId reference for Forms element fields
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Oct 22, 2024
1 parent 4bc9bb7 commit 300a379
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/fields/Forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ class Forms extends BaseRelationField
// Public Methods
// =========================================================================

public function __construct($config = [])
{
// Fix an error (not sure of cause...)
if (array_key_exists('formId', $config)) {
unset($config['formId']);
}

parent::__construct($config);
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit 300a379

Please sign in to comment.