Skip to content

Commit

Permalink
Fixed: base_host was not being used for urls
Browse files Browse the repository at this point in the history
Updates #356
  • Loading branch information
inghamn committed Mar 18, 2019
1 parent e0ed125 commit 49c8860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crm/blocks/html/reports/parameters.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Application\Models\Person;
use Blossom\Classes\Block;
use Blossom\Classes\Url;

$currentURL = new Url($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
$currentURL = new Url(Url::current_url(BASE_HOST));
?>
<div class="searchParameters">
<?php
Expand Down
4 changes: 2 additions & 2 deletions crm/templates/html/helpers/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function field(array $params)

$attr = '';
if (!empty( $params['attr'])) {
foreach ($params['attr'] as $k=>$v) { $attr.= "$k=\"$v\""; }
foreach ($params['attr'] as $k=>$v) { $attr.= "$k=\"$v\" "; }
}

$input = $this->$renderInput($params, $required, $attr);
Expand Down Expand Up @@ -245,4 +245,4 @@ public function person(array $params, $required=null, $attr=null)
$h = $this->template->getHelper('personChooser');
return $h->personChooser($params['name'], $params['value']);
}
}
}

0 comments on commit 49c8860

Please sign in to comment.