Permalink
Browse files

fix liveselect in subforms

git-svn-id: https://svn.liip.ch/repos/public/fluxcms/trunk@14236 99f7f646-bdd5-0310-89f9-ddcb10b10bf3
  • Loading branch information...
1 parent 2c11be4 commit 19cbbdb70052ba068a62b408cfa36ea3cfebe5dc gassi committed Jul 27, 2010
Showing with 16 additions and 0 deletions.
  1. +16 −0 inc/bx/dbforms2/form.php
View
@@ -192,6 +192,22 @@ public function getSubFormByName($name) {
}
/**
+ * Get all subforms
+ *
+ * @access public
+ * @return object field
+ */
+ public function getSubForms() {
+ $forms = null;
+ foreach($this->fields as $field) {
+ if($field instanceof bx_dbforms2_form) {
+ $forms[] = $field;
+ }
+ }
+ return $forms;
+ }
+
+ /**
* Sets the values of all fields the form has.
*
* @param type $var descr

0 comments on commit 19cbbdb

Please sign in to comment.