Issue Bug Closed

#77136Uploading a file through RTE leads to exception

Daniel Goerz 07/17/16, 13:15 updated 10/17/17, 23:16

Description

Reproduce:
  1. Enable Imags in RTE in EM
  2. Go to a content element with RTE
  3. Click on the image icon in the RTE
  4. Switch to “New Magic Image” or “New Plain Image”
  5. Check the “Overwrite existing files” checkbox
  6. Upload any file

Explanation:
The (deprecated) combatibility layer in the DuplicationBehavior Enumeration has been removed with #72426.
Here the value “1” is still passed to the DuplicationBehavior::cast() method wich is no longer mapped to
the correct constant and though leads to the exception.

Reviews 2