Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot validate types if DataExtensions are used #22

Open
elliot-sawyer opened this issue May 26, 2021 · 0 comments
Open

Cannot validate types if DataExtensions are used #22

elliot-sawyer opened this issue May 26, 2021 · 0 comments

Comments

@elliot-sawyer
Copy link
Owner

The validate method on Link provides a hook for extensions; however, it is hard-coded to validate on $this->Type rather than $this->owner->Type.

Steps to reproduce:

  1. Replace TreeDropdownField with UploadField via an extension hook: $fields->replaceField('FileID, UploadField::create('FileID'));
  2. Try to choose an existing file and attempt to save
  3. Observe validation error: Please select a {LinkType}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant