diff --git a/.gitignore b/.gitignore index d9d9d4924c8..479bc39764b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ .settings/org.eclipse.php.core.prefs .buildpath /application/config/config.php +*un~ diff --git a/CHANGELOG.md b/CHANGELOG.md index 04a35999377..c5fac944c21 100644 --- a/CHANGELOG.md +++ b/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 diff --git a/application/controllers/admin/tokens.php b/application/controllers/admin/tokens.php index cda37641069..201f42b6775 100644 --- a/application/controllers/admin/tokens.php +++ b/application/controllers/admin/tokens.php @@ -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") diff --git a/application/helpers/expressions/em_core_helper.php b/application/helpers/expressions/em_core_helper.php index 776c4117b64..0d591d4a08b 100644 --- a/application/helpers/expressions/em_core_helper.php +++ b/application/helpers/expressions/em_core_helper.php @@ -2707,7 +2707,7 @@ function exprmgr_convert_value($fValueToReplace, $iStrict, $sTranslateFromList, $iNearestIndex = $i; } } - if ( $iStrict !== 1 ) { + if ( $iStrict != 1 ) { return $aToValues[$iNearestIndex]; } } diff --git a/application/libraries/Date_Time_Converter.php b/application/libraries/Date_Time_Converter.php index c40fb377127..c231ef60e90 100644 --- a/application/libraries/Date_Time_Converter.php +++ b/application/libraries/Date_Time_Converter.php @@ -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'; } diff --git a/docs/release_notes.txt b/docs/release_notes.txt index 3e669da9d0e..7cdb90cc63d 100644 --- a/docs/release_notes.txt +++ b/docs/release_notes.txt @@ -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