Skip to content
Permalink
Browse files

Merge branch 'MDL-59296-33' of git://github.com/crazyserver/moodle in…

…to MOODLE_33_STABLE
  • Loading branch information...
stronk7 committed Jun 27, 2017
2 parents 653ec0d + 16f2fe5 commit aff28d6243e8f3e9920780498cd9655d382f68f8
Showing with 5 additions and 2 deletions.
  1. +5 −2 mod/data/field/latlong/field.class.php
@@ -104,14 +104,17 @@ function display_search_field($value = '') {
foreach ($latlongsrs as $latlong) {
$latitude = format_float($latlong->la, 4);
$longitude = format_float($latlong->lo, 4);
$options[$latlong->la . ',' . $latlong->lo] = $latitude . ' ' . $longitude;
if ($latitude && $longitude) {
$options[$latlong->la . ',' . $latlong->lo] = $latitude . ' ' . $longitude;
}
}
$latlongsrs->close();
$classes = array('class' => 'accesshide');
$return = html_writer::label(get_string('latlong', 'data'), 'menuf_'.$this->field->id, false, $classes);
$classes = array('class' => 'custom-select');
$return .= html_writer::select($options, 'f_'.$this->field->id, $value, null, $classes);
$return .= html_writer::select($options, 'f_'.$this->field->id, $value, array('' => get_string('menuchoose', 'data')),
$classes);
return $return;
}

0 comments on commit aff28d6

Please sign in to comment.
You can’t perform that action at this time.