I created two Entity Browser, which point to two Form mode for the media image.
In one I selected to use a crop size, the other the second, but when entity browser opens the edit window are presented to me both.

Ex:
Entity browser:
a

Media form custom view mode:
a

Admin:
a

Comments

sedax created an issue. See original summary.

csedax90’s picture

Status: Active » Needs review
StatusFileSize
new680 bytes

Simple path attached

Status: Needs review » Needs work

The last submitted patch, 2: 2857252--all-crops-loaded.patch, failed testing.

woprrr’s picture

Hi @sedax,

What version of IWC you use ? Your changes are old ?

Instead of we have that now. We are based on Field configuration to retreive the list not onto that loadMultiple.

      /** @var \Drupal\Core\Config\Entity\ConfigEntityStorage $crop_type_storage */
      $crop_type_storage = \Drupal::entityTypeManager()->getStorage('crop_type');
      if (!empty($crop_type_storage->loadMultiple())) {
        foreach ($crop_type_list as $crop_type) {
          /** @var \Drupal\crop\Entity\CropType $crop_type */
          $crop_type = $crop_type_storage->load($crop_type);
csedax90’s picture

i'm using latest dev version, included via composer

"drupal/image_widget_crop": "1.x-dev",
woprrr’s picture

Can you try an "composer update drupal/image_widget_crop" to have last version ?

csedax90’s picture

i've tried but it doens't update anything

woprrr’s picture

Status: Needs work » Postponed (maintainer needs more info)
StatusFileSize
new402.16 KB
new853.95 KB

I try to reproduce your problem and impossible to have this problem... I really think is that an old version of IWC.

Can you precise more your reproduction path to seen that ?

csedax90’s picture

Is not a problem with composer version of the module? I can try to download versione directly with drush...

Edit: ok with the version directly downloaded with drush it works... at this point it is definitely a problem with the version updated by composer

csedax90’s picture

Status: Postponed (maintainer needs more info) » Active
Related issues: +#2803407: Refactor form element and JS to work with any theme

Ok, if I download the latest version with drush it works, but if I apply the patch #38 of this issue https://www.drupal.org/node/2803407 I've the problem...

markhalliwell’s picture

Status: Active » Closed (duplicate)