Skip to content

Commit

Permalink
Merge branch '2.06lts' of https://github.com/LimeSurvey/LimeSurvey.git
Browse files Browse the repository at this point in the history
…into 2.06_SondagesPro

# Conflicts:
#	application/config/version.php
#	scripts/map.js
  • Loading branch information
Shnoulle committed Nov 16, 2016
2 parents 866d6bc + e3f01b2 commit 3d21d66
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -21,3 +21,4 @@
.settings/org.eclipse.php.core.prefs
.buildpath
/application/config/config.php
*un~
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Change Log
Only partial changelog, [commit history](https://framagit.org/Shnoulle/LimeSurvey/commits/2.06_SondagesPro) show all changelog.

## unreleased

### Fix
- Expression manager convert_value does not obey strict setting (Olle Haerstedt) (2.6.1lts)
- Date/Time filed does not record the answer (Olle Haerstedt) (2.6.1lts)

## [1.1.0] - 2016-11-10

Expand Down
2 changes: 1 addition & 1 deletion application/controllers/admin/tokens.php
Expand Up @@ -104,7 +104,7 @@ function bounceprocessing($iSurveyId)
$hostencryption=strtoupper($thissurvey['bounceaccountencryption']);
}

@list($hostname, $port) = split(':', $hostname);
@list($hostname, $port) = explode(':', $hostname);
if (empty($port))
{
if ($accounttype == "IMAP")
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_core_helper.php
Expand Up @@ -2707,7 +2707,7 @@ function exprmgr_convert_value($fValueToReplace, $iStrict, $sTranslateFromList,
$iNearestIndex = $i;
}
}
if ( $iStrict !== 1 ) {
if ( $iStrict != 1 ) {
return $aToValues[$iNearestIndex];
}
}
Expand Down
10 changes: 7 additions & 3 deletions application/libraries/Date_Time_Converter.php
Expand Up @@ -97,9 +97,13 @@ private function _default_date_time_units() {
$this->seconds = '00';
$this->minutes = '00';
$this->hours = '00';
$this->days = '01';
$this->months = '01';
$this->years = '1970';

// Default must be set to "today", otherwise
// saving only hour will calculate wrong timestamp.
// See bug #11606.
$this->days = date('d');
$this->months = date('m');
$this->years = date('Y');
$this->ampm = 'am';
}

Expand Down
8 changes: 8 additions & 0 deletions docs/release_notes.txt
Expand Up @@ -60,6 +60,14 @@ CHANGE LOG
------------------------------------------------------


Changes from 2.06LTS (build 160801) to 2.6.1LTS (build 161024) Oct 24, 2016
-Fixed issue #11455: MapQuest discontinued their free services (Markus Flür)
-Fixed issue #11509: numerical input option integer only leads to positive integer input only (Denis Chenu)
-Fixed issue #11613: Importing a participant having an empty token field is not possible (Carsten Schmitz)
-Fixed issue #11772: Expression manager convert_value does not obey strict setting (Olle Haerstedt)
-Fixed issue #11827: Email bounce processing fails on PHP 7 (Carsten Schmitz)
-Fixed issue: ~ and _ in tokens hard to manually enter (Carsten Schmitz)

Changes from 2.06LTS (build 160524) to 2.06LTS (build 160801) Aug 1, 2016
-Fixed issue #10226: {ANSWERTABLE} includes <script> placed in question text (LouisGac)
-Fixed issue #10952: Conditions do not show up in conditions designer after creation if using MSSQL and connecting from Linux using FreeTDS (Carsten Schmitz)
Expand Down
2 changes: 1 addition & 1 deletion scripts/expressions/em_javascript.js
Expand Up @@ -254,7 +254,7 @@ function LEMconvert_value( fValueToReplace, iStrict, sTranslateFromList, sTransl
iNearestIndex = i;
}
}
if ( iStrict !== 1 ) {
if ( iStrict != 1 ) {
return aToValues[iNearestIndex];
}
}
Expand Down
28 changes: 24 additions & 4 deletions scripts/map.js
Expand Up @@ -51,12 +51,13 @@ function OSGeoInitialize(question,latLng){
};
var name = question.substr(0,question.length - 2);
// tiles layers def
// If not latLng is set the Map will center to Hamburg
var MapOption=LSmaps[name];
if(isNaN(MapOption.latitude) || MapOption.latitude==""){
MapOption.latitude=0;
MapOption.latitude=53.582665;
}
if(isNaN(MapOption.longitude) || MapOption.longitude==""){
MapOption.longitude=0;
MapOption.longitude=10.018924;
}
var mapOSM = L.tileLayer(tileServerURL.OSM+".png", {
maxZoom: 19,
Expand Down Expand Up @@ -91,7 +92,6 @@ function OSGeoInitialize(question,latLng){
"Cyclemap": mapCYC,
"Traffic Map" : mapTRA
};

var overlays = {
};
var map = L.map("map_"+name, {
Expand Down Expand Up @@ -144,6 +144,26 @@ function OSGeoInitialize(question,latLng){
}
)

// Zoom to 11 when switching to Aerial or Hybrid views - bug 10589
var layer2Name, layer3Name, layerIndex = 0;
for (var key in baseLayers) {
if (!baseLayers.hasOwnProperty(key)) {
continue;
}
if(layerIndex == 1) {
layer2Name = key;
}
else if(layerIndex == 2) {
layer3Name = key;
}
layerIndex++;
}
map.on('baselayerchange', function(e) {
if(e.name == layer2Name || e.name == layer3Name) {
map.setZoom(11);
}
});

marker.on('dragend', function(e){
var marker = e.target;
var position = marker.getLatLng();
Expand Down Expand Up @@ -194,7 +214,7 @@ function OSGeoInitialize(question,latLng){
appendTo: $("#searchbox_"+name).parent(),
source: function( request, response ) {
$.ajax({
url: "http://api.geonames.org/searchJSON",
url: "//api.geonames.org/searchJSON",
dataType: "jsonp",
data: {
username : LSmap.geonameUser,
Expand Down

0 comments on commit 3d21d66

Please sign in to comment.