Skip to content

Commit

Permalink
Set requested_location in template on update, too.
Browse files Browse the repository at this point in the history
Needed in case we have an error message to display.
  • Loading branch information
mrubinsk committed Nov 5, 2016
1 parent 10c2394 commit c2903ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/lib/Block/Metar.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected function _content()
$view->date_format = $prefs->getValue('date_format');
$view->time_format = $prefs->getValue('time_format');
if (!empty($this->_refreshParams) && !empty($this->_refreshParams->location)) {
$location = $this->_refreshParams->location;
$location = $view->requested_location = $this->_refreshParams->location;
$view->instance = '';
} else {
$view->instance = hash('md5', mt_rand());
Expand Down

0 comments on commit c2903ae

Please sign in to comment.