Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 7089)
+++ /controller/wpsg_ProduktController.class.php	(revision 7091)
@@ -79,5 +79,5 @@
 			{ 
 			  				
-				add_post_meta($_REQUEST['post']['id'], 'wpsg_produkt_id', $_REQUEST['edit_id']);
+				add_post_meta($_REQUEST['post_id'], 'wpsg_produkt_id', $_REQUEST['edit_id']);
 				
 				$this->shop->view['data']['id'] = $_REQUEST['edit_id'];
Index: /views/produkt/images.phtml
===================================================================
--- /views/produkt/images.phtml	(revision 7089)
+++ /views/produkt/images.phtml	(revision 7091)
@@ -99,5 +99,5 @@
 				function wpsg_remove_bild(strBild)
 				{
-alert(3);
+
 					if (!confirm('<?php echo __('Sind Sie sicher, das Sie dieses Bild lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
 
@@ -189,4 +189,5 @@
 				            //loop through the array and do things with each attachment
 				            var i, attachment;
+				            
 				            for (i = 0; i < attachments.length; ++i) {
 
@@ -195,9 +196,12 @@
 
 				            	attachment = attachment.toJSON();
+				            	
+				            	console.log(attachment);
+				            	
 								jQuery.ajax( {
 									url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&cmd=upload&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
 									async: true,
 									data: {
-										post: attachment
+                                        post_id: attachment.id
 									},
 									success: function(data) {
