It appears that trying to hit the 'remove' button for an image in an image field, the field then disappears completely from the megarow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Artusamak’s picture

Could you screenshot the before / after behavior please, i'm not sure to get where megarow is involved?

pixelsweatshop’s picture

Sorry, nigelwaters and I were working on this issue together. We should have posted more info.

Here are some screenshots to demo what I am talking about:

edit:wrong screenshots. see next comment.

pixelsweatshop’s picture

Artusamak’s picture

Category: bug » support
Status: Active » Fixed

The issue that you are having is that the form rendered is defined in an external file (eg: the node_form is defined in the file node.pages.inc)

To fix that you need to describe to the system where the form should be included from. In your case i think that you were editing a product display which is a node that you are editing, including the form file such as below should fix it:

/**
 * Implements hook_form_alter().
 */
function views_megarow_form_alter(&$form, &$form_state, $form_id) {
  if (strpos($form_id, '_node_form') !== FALSE) {
    form_load_include($form_state, 'inc', 'node', 'node.pages');
  }
}

Status: Fixed » Closed (fixed)

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