]> git.andy128k.dev Git - ipf.git/commitdiff
FIx comment model inline add formset
authorJohnSmith <andy128k@gmail.com>
Sun, 14 Sep 2008 14:51:58 +0000 (17:51 +0300)
committerJohnSmith <andy128k@gmail.com>
Sun, 14 Sep 2008 14:51:58 +0000 (17:51 +0300)
ipf/admin/modelinline.php

index efa78e06cd85c7f8d850cf51f21f2a9b09e82931..a212a9a6dfec7d40ef4463c3e438e7ef03790812 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 
+
 abstract class IPF_Admin_ModelInline{
 
     var $model = null;
@@ -93,7 +94,6 @@ abstract class IPF_Admin_ModelInline{
             }
         }
         
-        /*
         for($i=0; $i<$this->getAddNum(); $i++ ){
             $form = IPF_Shortcuts::GetFormForModel($this->model->copy(), null, array('exclude'=>array($this->getFkName(),$this->getFkLocal())));
             $form->fields = array_merge(array(new IPF_Form_Field_Boolean(array('label'=>'Del','name'=>'delete_', 'widget_attrs'=>array('disabled'=>'disabled')))),$form->fields);
@@ -108,7 +108,6 @@ abstract class IPF_Admin_ModelInline{
                 $form->isFirst = false;
             $this->formset[] = $form;
         }
-        */
     }
     
     function save(){