Update: Issue persists with Media 7.x-2.0-beta2

We have a Drupal multisite setup running Manual Crop 7.x-1.5 and are in the process of upgrading its version of Media to 7.x-2.0-beta1. We use these and the File Entity module and media browser widget to allow our users to upload and display images attached to nodes. This version of Media is a huge overhaul and has introduced some bugs and general weirdness across the board.

We're using the Media Browser to let users attach images to certain node fields. The list of cropping option is appearing in two places, once on the node edit and again on the media modal window. As a result, when a photo is cropped in either location, the label doubles up in both places. We are using the "List thumbnails" option primarily but you can also reproduce this with the drop down crop selection.

Before the Media upgrade the cropping options only appeared in the modal popup and not on the node edit form, which made this issue avoidable. Now it appears in both spots and there are no options to change the setting. Our original solution was to use CSS to hide the display of the cropping options on the node edit form, but this still causes the duplicate label issue.

CommentFileSizeAuthor
manualcrop-issue2.JPG87.82 KBlcaple
manualcropissue1.JPG55.47 KBlcaple

Comments

punfar created an issue. See original summary.

heatherwoz’s picture

Title: Duplicating labels after successfully cropping image » Compatibility with Media 7.x-2.0-beta1 and duplicate labels after cropping image
heatherwoz’s picture

We are working on a patch for this issue (I work with OP) and I am wondering what the recommendation is - do we update the module to work with the latest release of Media, or do we add conditions to check what version of media is installed to maintain backward compatibility? Since the latest release of Media causes the crop widget to appear in two places, we are thinking to add a setting on field config so that you can choose where you want it to appear - in edit form or media modal window - and avoid the double rendering and duplicate label bug.

heatherwoz’s picture

Title: Compatibility with Media 7.x-2.0-beta1 and duplicate labels after cropping image » Compatibility with Media 7.x-2.0-beta2 and duplicate labels after cropping image
Issue summary: View changes
ParisLiakos’s picture

i form altered the file edit form and removed the crop button from there. Not many problems so far

Chris Charlton’s picture

+1