Modify Forge to accept multiple hidden params (this was broken by an

API change in K24).
This commit is contained in:
Bharat Mediratta
2009-12-31 15:49:43 -08:00
parent 7af844606d
commit a018e6235f
2 changed files with 21 additions and 7 deletions

View File

@@ -299,7 +299,10 @@ class Forge_Core {
}
// Set the form open and close
$form->open = form::$form_type(arr::remove('action', $this->attr), $this->attr, $hidden);
$form->open = form::$form_type(arr::remove('action', $this->attr), $this->attr);
foreach ($this->hidden as $hidden) {
$form->open .= form::hidden($hidden->name, $hidden->value);
}
$form->close = "</form>";
// Set the inputs