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

Adding Image Transform breaks RichText Field #1322

Closed
fmolina24 opened this issue Feb 2, 2017 · 1 comment
Closed

Adding Image Transform breaks RichText Field #1322

fmolina24 opened this issue Feb 2, 2017 · 1 comment
Assignees
Labels
bug severity:normal Bugs that affect typical usage

Comments

@fmolina24
Copy link

fmolina24 commented Feb 2, 2017

Description

Adding a image transform break rich text fields set with Available Transforms to all. It breaks with the following exception:
in_array() expects parameter 2 to be array, string given

The issue is related to the fact that $this->availableTransform is a string "*" and in_array expects an array in the second argument.

Problem is in vendor/craftcms/cms/src/fields/RichText.php:515

Steps to reproduce

  1. Create a Image Transform and Asset Volume.
  2. Create a Entry single type that has a Rich text field with Available Transforms set to all.
  3. Try to edit entry content notice.

Additional info

  • Craft version: 3.0.0-beta.1
  • PHP version: 7.0.8 (MAMP PRO)
  • Database driver & version: MySQL 5.5.42
  • Plugins & versions: Clean Install.
@brandonkelly brandonkelly self-assigned this Feb 2, 2017
@brandonkelly brandonkelly added bug severity:normal Bugs that affect typical usage in progress labels Feb 2, 2017
@ghost ghost removed the in progress label Feb 2, 2017
@brandonkelly
Copy link
Member

Fixed - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity:normal Bugs that affect typical usage
Projects
None yet
Development

No branches or pull requests

2 participants