The Duplicate/Export links just link to the Edit URL for the image style ... I have cleared the cache many times and I changed from 7.x-1.4 to dev and no difference. So for example my image style "product_box" uses this:

Edit link URL:
http://mysite.com/admin/config/media/image-styles/edit/product_box/

Duplicate URL:
http://mysite.com/en/admin/config/media/image-styles/edit/product_box/

Export URL:
http://mysite.com/en/admin/config/media/image-styles/edit/product_box/

When I manually enter http://mysite.com/en/admin/config/media/image-styles/duplicate/product_box/, it does work. I just guessed at the URL and it worked. But the actual admin links on the Image Styles page don't work as expected, they just edit the existing image style.

FYI.

Comments

caspervoogt’s picture

Issue summary: View changes
fietserwin’s picture

I have no clue why this could be the case.
- What version of PHP are you using?
- Did you clear the theme cache as well?
- Do you have other modules that interact with that admin screen ? (posting html of table would be nice)
- Can you check that the functions involved are actually called by adding the drupal_set_message lines (or using a debugger)?

function image_styles_admin_preprocess_image_style_list(&$variables) {
  drupal_set_message('image_styles_admin_preprocess_image_style_list() called');
  ...
}
function image_styles_admin_preprocess_table(&$variables) {
  static $is_in_image_style_list = FALSE;

  if (is_bool($variables)) {
    // Called from imagecache_actions_style_duplicate(): set flag
    $is_in_image_style_list = $variables;
  }
  else if ($is_in_image_style_list) {
    drupal_set_message('image_styles_admin_preprocess_table() called');
  ...
}

fietserwin’s picture

Status: Active » Postponed (maintainer needs more info)

  • Commit fccb6d2 on 7.x-1.x by fietserwin:
    [#2183721]: Duplicate/Export links just edit, they don't duplicate or...
caspervoogt’s picture

@fietserwin, sorry for the lack of reply... I don't seem to be getting notifications of replies. Looks like you solved it (?)

fietserwin’s picture

Please test it. I think that I made it more robust, but cannot test it as it did already work with me.

fietserwin’s picture

Status: Postponed (maintainer needs more info) » Fixed

Closing this issue, assuming it is fixed. Please feel free to reopen if this is not the case after all.

Status: Fixed » Closed (fixed)

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

caspervoogt’s picture

I did updated to the 7.x-1.5 version which works fine.