summaryrefslogtreecommitdiff
path: root/modules/forge
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-31 15:49:43 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-31 15:49:43 -0800
commita018e6235f09dd727b07f24801a8f237e07b3260 (patch)
tree8091b543566e76dffff2a64d65e53856c62ff85e /modules/forge
parent7af844606d79d1f987c6d754f5c5db64d86acc47 (diff)
Modify Forge to accept multiple hidden params (this was broken by an
API change in K24).
Diffstat (limited to 'modules/forge')
-rw-r--r--modules/forge/libraries/Forge.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/forge/libraries/Forge.php b/modules/forge/libraries/Forge.php
index 5807c849..9179aaeb 100644
--- a/modules/forge/libraries/Forge.php
+++ b/modules/forge/libraries/Forge.php
@@ -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