Skip to content

Commit 49c8860

Browse files
committed
Fixed: base_host was not being used for urls
Updates #356
1 parent e0ed125 commit 49c8860

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crm/blocks/html/reports/parameters.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use Application\Models\Person;
1414
use Blossom\Classes\Block;
1515
use Blossom\Classes\Url;
1616

17-
$currentURL = new Url($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
17+
$currentURL = new Url(Url::current_url(BASE_HOST));
1818
?>
1919
<div class="searchParameters">
2020
<?php

crm/templates/html/helpers/Field.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function field(array $params)
6969

7070
$attr = '';
7171
if (!empty( $params['attr'])) {
72-
foreach ($params['attr'] as $k=>$v) { $attr.= "$k=\"$v\""; }
72+
foreach ($params['attr'] as $k=>$v) { $attr.= "$k=\"$v\" "; }
7373
}
7474

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

0 commit comments

Comments
 (0)