When I click on a Manualcrop thumbnail to edit crop area in the overlay, I always get error message

Uncaught TypeError: Cannot read property 'width' of null when opening crop UI

in 266 line of manualcrop.js.
The reason is that ManualCrop.oldSelection is not defined in that line, when maximizeDefaultCropArea option is ON.

See the patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

FileSize
1.52 KB

Heh.. I was gonna save time by not creating a local branch for such a minor change, but after all I decided to do everything uniformly.

Matthijs’s picture

Assigned: Unassigned » Matthijs
Status: Needs review » Fixed

Thanks for the patch, it has been committed!

Matthijs

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.