Fixing the postLink url when the application is not in root path.

This commit is contained in:
Juan Basso 2011-01-18 23:39:05 -02:00
parent 23dce83836
commit f73c4f38d5

View file

@ -1325,7 +1325,6 @@ class FormHelper extends AppHelper {
unset($options['confirm']); unset($options['confirm']);
} }
$url = $this->url($url);
$formName = uniqid('post_'); $formName = uniqid('post_');
$out = $this->create(false, array('url' => $url, 'name' => $formName, 'id' => $formName, 'style' => 'display:none;')); $out = $this->create(false, array('url' => $url, 'name' => $formName, 'id' => $formName, 'style' => 'display:none;'));
if (isset($options['data']) && is_array($options['data'])) { if (isset($options['data']) && is_array($options['data'])) {