Przeglądaj źródła

修复hasMany以及table表单无法使用多个switch表单问题

jqh 5 lat temu
rodzic
commit
6df8844cb2
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      src/Form/Field/HasMany.php
  2. 1 1
      src/Form/NestedForm.php

+ 1 - 1
src/Form/Field/HasMany.php

@@ -722,7 +722,7 @@ JS;
         /* Build cell with hidden elements */
         $template .= '<td class="hidden">'.implode('', $hidden).'</td>';
 
-        $this->setupScript(implode("\r\n", $scripts));
+        $this->setupScript(implode(";\r\n", $scripts));
 
         // specify a view to render.
         $this->view = $this->views[$this->viewMode];

+ 1 - 1
src/Form/NestedForm.php

@@ -385,7 +385,7 @@ class NestedForm
             }
         }
 
-        return [$html, implode("\r\n", $scripts)];
+        return [$html, implode(";\r\n", $scripts)];
     }
 
     /**