Permalink
Browse files

it seems the new_iid value was lost after creation. store it.

  • Loading branch information...
1 parent 06b696d commit ade918c2347045b8bdd9e4396041a61c869f2cb2 Admin committed Dec 9, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 wysiwyg_imageupload.form.inc
@@ -144,6 +144,7 @@ function wysiwyg_imageupload_edit_form_validate($form, &$state) {
// Dont be confused here, this create handler ignores the current iid, so always creates
// a new one based on the current meta-data
$new_iid = _wysiwyg_imageupload_create_inline_entity($old_img_obj, TRUE);
+ $state['values']['iid'] = $new_iid;
}
}

0 comments on commit ade918c

Please sign in to comment.