Skip to content

Commit

Permalink
unbound forms prefix fix - WARNING, POTENTIAL BREAKAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldon committed Feb 5, 2013
1 parent 72aec14 commit 0f08ec1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions forms/WaxForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public function __construct($model = false, $post_data = false, $options=array()
if(is_array($model)) $options = $model;
if($model instanceof WaxModel) $this->handler = new WaxBoundForm($model, $post_data, $options);
elseif($model instanceof WaxRecordset) $this->handler = new WaxRecordsetForm($model, $post_data, $options);
else $this->handler = new WaxUnboundForm($model, $post_data, array_merge($options, array('form_prefix'=>$this->form_prefix)) );
if($this->form_prefix) $this->handler->form_prefix = $this->form_prefix;
else $this->handler = new WaxUnboundForm($model, $post_data, $options);
$this->setup();
}

Expand Down

0 comments on commit 0f08ec1

Please sign in to comment.