Skip to content

Commit

Permalink
fix liveselect in subforms
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.liip.ch/repos/public/fluxcms/trunk@14236 99f7f646-bdd5-0310-89f9-ddcb10b10bf3
  • Loading branch information
gassi committed Jul 27, 2010
1 parent 2c11be4 commit 19cbbdb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions inc/bx/dbforms2/form.php
Expand Up @@ -191,6 +191,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. * Sets the values of all fields the form has.
* *
Expand Down

0 comments on commit 19cbbdb

Please sign in to comment.