]> git.andy128k.dev Git - ipf.git/commitdiff
admin: fix inline deletion
authorAndrey Kutejko <andy128k@gmail.com>
Mon, 13 Jan 2014 18:59:39 +0000 (20:59 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Mon, 13 Jan 2014 18:59:39 +0000 (20:59 +0200)
ipf/admin/modelinline.php

index 4ac7dc3a167f5a2557e99b26b8821f392afbc76a..b772370cdcd906af517a07d38dd628ba3c36caa1 100644 (file)
@@ -205,7 +205,7 @@ abstract class IPF_Admin_ModelInline
 
                     @list($x1,$x2,$id,$x3) = @explode('_',$form->prefix);
                     if ($id == $obj->id) {
-                        if ($form->cleaned_data[0]==true) {
+                        if ($form->cleaned_data['is_remove']==true) {
                             $obj->delete();
                         } else {
                             unset($form->cleaned_data[0]);