diff -u b/manualcrop.helpers.inc b/manualcrop.helpers.inc --- b/manualcrop.helpers.inc +++ b/manualcrop.helpers.inc @@ -240,6 +240,10 @@ 'required_styles' => $required, ); } + else { + $form_state['manualcrop_data']['images'][$file->fid]['element_parents'] = array_merge($form_state['manualcrop_data']['images'][$file->fid]['element_parents'], array($container['#parents'])); + $form_state['manualcrop_data']['images'][$file->fid]['required_styles'] = array_merge($form_state['manualcrop_data']['images'][$file->fid]['required_styles'], $required); + } // Get the crop selections for this file. $submitted = (isset($form_state['inline_entity_form']) ? FALSE : $form_state['submitted']); diff -u b/manualcrop.module b/manualcrop.module --- b/manualcrop.module +++ b/manualcrop.module @@ -427,8 +427,8 @@ foreach ($image['element_parents'] as $parent) { $value = drupal_array_get_nested_value($form_state['values'], $parent); if (!empty($value['manualcrop_selections'])) { - // Create a selections array for the current image, the first element is - // the path to the original image, needed for flushing the cache. + // Create a selections array for the current image, the first element + // is the path to the original image, needed for flushing the cache. if (!isset($selections[$fid])) { $selections[$fid] = array( 'path' => $image['uri'],