Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix liveselect in subforms

git-svn-id: https://svn.liip.ch/repos/public/fluxcms/trunk@14236 99f7f646-bdd5-0310-89f9-ddcb10b10bf3
  • Loading branch information...
commit 19cbbdb70052ba068a62b408cfa36ea3cfebe5dc 1 parent 2c11be4
authored

Showing 1 changed file with 16 additions and 0 deletions. Show diff stats Hide diff stats

  1. 16  inc/bx/dbforms2/form.php
16  inc/bx/dbforms2/form.php
@@ -192,6 +192,22 @@ public function getSubFormByName($name) {
192 192
     }
193 193
     
194 194
     /**
  195
+     *  Get all subforms
  196
+     *
  197
+     *  @access public
  198
+     *  @return object field
  199
+     */
  200
+    public function getSubForms() {
  201
+        $forms = null;
  202
+        foreach($this->fields as $field) {
  203
+            if($field instanceof bx_dbforms2_form) {
  204
+                $forms[] = $field;
  205
+            }
  206
+        }
  207
+        return $forms;
  208
+    }
  209
+    
  210
+    /**
195 211
      *  Sets the values of all fields the form has.
196 212
      *
197 213
      *  @param  type  $var descr

0 notes on commit 19cbbdb

Please sign in to comment.
Something went wrong with that request. Please try again.