Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LimeSurvey/LimeSurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Oct 12, 2017
2 parents a8a7c42 + 5605450 commit 1d0e29a
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 27 deletions.
3 changes: 0 additions & 3 deletions application/config/config-defaults.php
Expand Up @@ -93,9 +93,6 @@

$config['maxemails'] = 50; // The maximum number of emails to send in one go (this is to prevent your mail server or script from timeouting when sending mass mail)

// Enable or Disable LDAP feature
$config['enableLdap'] = false;

// Experimental parameters, only change if you know what you're doing
//
// filterout_incomplete_answers
Expand Down
4 changes: 2 additions & 2 deletions application/config/version.php
Expand Up @@ -12,11 +12,11 @@
*150413
*/

$config['versionnumber'] = '2.72.0';
$config['versionnumber'] = '2.72.1';
$config['dbversionnumber'] = 263;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['assetsversionnumber'] = '2721';
$config['assetsversionnumber'] = '2722';
return $config;

?>
2 changes: 1 addition & 1 deletion application/controllers/admin/tokens.php
Expand Up @@ -1962,7 +1962,7 @@ public function importldap($iSurveyId)
if (isset($responseGroup[$j][$ldap_queries[$ldapq]['language']]))
$mylanguage = ldap_readattr($responseGroup[$j][$ldap_queries[$ldapq]['language']]);

// In case Ldap Server encoding isn't UTF-8, let's translate
// In case LDAP Server encoding isn't UTF-8, let's translate
// the strings to UTF-8
if ($ldapencoding != '')
{
Expand Down
2 changes: 1 addition & 1 deletion application/core/plugins/AuthLDAP/AuthLDAP.php
Expand Up @@ -17,7 +17,7 @@ class AuthLDAP extends ls\pluginmanager\AuthPluginBase
protected $settings = array(
'server' => array(
'type' => 'string',
'label' => 'Ldap server',
'label' => 'LDAP server',
'help' => 'e.g. ldap://ldap.example.com or ldaps://ldap.example.com'
),
'ldapport' => array(
Expand Down
Expand Up @@ -24,7 +24,7 @@
</td>
<?php if ($result['result']):?>
<td class="text-success">
<?php echo 'Exported' ; ?>
<?php eT('Exported'); ?>
</td>
<?php else: ?>
<td class="text-warning">
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/ldap_helper.php
Expand Up @@ -109,7 +109,7 @@ function ldap_doTokenSearch($ds, $ldapq, &$ResArray, $surveyid) {
$userattrs=array();

// First let's lowercase the ldap query values
prepareLdapQuery($ldapq);
prepareLDAPQuery($ldapq);

// Retrieve the ldap user attribute-list to read
$userparams = array('firstname_attr','lastname_attr',
Expand Down Expand Up @@ -308,7 +308,7 @@ function ldap_doTokenSearch($ds, $ldapq, &$ResArray, $surveyid) {
return $totalrescount;
}

function prepareLdapQuery($queryId)
function prepareLDAPQuery($queryId)
{
$ldap_queries = Yii::app()->getConfig('ldap_queries');
$QueryName=$ldap_queries[$queryId]['name'];
Expand Down
7 changes: 3 additions & 4 deletions application/helpers/qanda_helper.php
Expand Up @@ -2511,13 +2511,12 @@ function upload_$ia[1]() {
$filecountvalue = $tempval;
}
}
$value = htmlspecialchars($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]],ENT_QUOTES,'utf-8');
$fileuploadDatas = array(
$fileuploadData = array(
'fileid' => $ia[1],
'value' => $value,
'value' => $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]],
'filecountvalue'=>$filecountvalue,
);
$answer .= doRender('/survey/questions/file_upload/answer', $fileuploadDatas, true);
$answer .= doRender('/survey/questions/file_upload/answer', $fileuploadData, true);

$answer .= '<script type="text/javascript">
var surveyid = '.Yii::app()->getConfig('surveyID').';
Expand Down
28 changes: 25 additions & 3 deletions application/models/Plugin.php
Expand Up @@ -14,7 +14,11 @@
*/

/**
* This is the model class for table "{{plugins}}".
* Class Plugin
*
* @property integer $id primary key
* @property string $name
* @property integer $active
*/
class Plugin extends CActiveRecord {

Expand All @@ -25,8 +29,26 @@ class Plugin extends CActiveRecord {
public static function model($className = __CLASS__) {
return parent::model($className);
}


/**
* Returns the table's name
*
* @access public
* @return string
*/
public function tableName() {
return '{{plugins}}';
}
}

/**
* Returns the validation rules for attributes.
* @return array[]
*/
public function rules() {
return array(
array('name','length', 'max'=>255),
array('active','default', 0),
array('active','numerical', 'integerOnly'=>true,'allowEmpty'=>true),
);
}
}
5 changes: 2 additions & 3 deletions application/models/PluginSetting.php
Expand Up @@ -51,10 +51,9 @@ public function tableName() {
public function rules() {
return array(
array('plugin_id','numerical', 'integerOnly'=>true), // 'allowEmpty'=>false ?
array('model','string', 'max'=>255,'allowEmpty'=>true),
array('model','length', 'max'=>255,'allowEmpty'=>true),
array('model_id','numerical', 'integerOnly'=>true,'allowEmpty'=>true),
array('key','string', 'max'=>255),
array('value','string'),
array('key','length', 'max'=>255),
);
}
}
@@ -1,10 +1,10 @@
participantsphp
<?php
/**
* Notificatin panel
*/
?>
<!-- Notification panel -->
<div id='notification' class="tab-pane fade in">
<div id='notification' class="tab-pane fade in">

<!-- email basic to -->
<div class="form-group">
Expand Down
6 changes: 4 additions & 2 deletions application/views/survey/questions/file_upload/answer.php
Expand Up @@ -20,8 +20,10 @@ class='btn btn-default upload'
<span class='fa fa-upload'></span>&nbsp;<?php eT('Upload files'); ?>
</a>
</div>
<input type='hidden' id='<?php echo $fileid;?>' name='<?php echo $fileid;?>' value='<?php echo $value;?>' />
<input type='hidden' id='<?php echo $fileid;?>_filecount' name='<?php echo $fileid;?>_filecount' value="<?php echo $filecountvalue?>" />
<?php
echo CHtml::hiddenField($fileid, $value, array('name'=>$fileid));
echo CHtml::hiddenField($fileid.'_filecount', $filecountvalue, array('name'=>$fileid.'_filecount'));
?>
<div id='<?php echo $fileid;?>_uploadedfiles'>
</div>
<!-- end of answer -->
12 changes: 11 additions & 1 deletion docs/release_notes.txt
Expand Up @@ -35,7 +35,17 @@ Thank you to everyone who helped with this new release!
CHANGE LOG
------------------------------------------------------

Changes from 2.71.1 (build 170927) to 2.72.0 (build 170927) Oct 10, 2017
Changes from 2.72.0 (build 171010) to 2.72.1 (build 171012) Oct 12, 2017
-Fixed issue #12551: Untranslated string (Carsten Schmitz)
-Fixed issue #12765: When saving survey settings an error is shown. (Carsten Schmitz)
-Fixed issue: Unable to save plugin settings (Denis Chenu)
#Updated translation: Catalan by qualitatuvic
#Updated translation: French (France) by arnaud21
#Updated translation: Hungarian by kkd
#Updated translation: Indonesian by radhwaw
#Updated translation: Norwegian (Bokmål) by pmonstad

Changes from 2.71.1 (build 170927) to 2.72.0 (build 171010) Oct 10, 2017
-New feature #12691: Allow initial superadmin to login via LDAP (Denis Chenu)
-New feature #9235: Copy, export and import survey plugin settings (Denis Chenu)
-New feature: Copy survey from remotecontroll (#688) (Stefan Verweij)
Expand Down
6 changes: 5 additions & 1 deletion locale/_template/limesurvey.pot
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: LimeSurvey language file\n"
"Report-Msgid-Bugs-To: http://translate.limesurvey.org/\n"
"POT-Creation-Date: 2017-10-10 11:15:33+00:00\n"
"POT-Creation-Date: 2017-10-12 07:05:45+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -5981,6 +5981,10 @@ msgstr ""
msgid "Expiry date/time:"
msgstr ""

#: application/extensions/admin/survey/ListSurveysWidget/views/massive_actions/_export_archive_results.php:27
msgid "Exported"
msgstr ""

#: application/extensions/admin/survey/ListSurveysWidget/views/massive_actions/_export_archive_results.php:42
#: application/views/admin/token/massive_actions/_export_archive_results.php:42
msgid "Download archive"
Expand Down
Binary file modified locale/ca/ca.mo
Binary file not shown.
Binary file modified locale/fr/fr.mo
Binary file not shown.
Binary file modified locale/hu/hu.mo
Binary file not shown.
Binary file modified locale/id/id.mo
Binary file not shown.
Binary file modified locale/nb/nb.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/modaldialog.js
Expand Up @@ -82,7 +82,7 @@ function displayUploadedFiles(jsonstring, filecount, fieldname, show_title, show

if (jsonstring !== '')
{
jsonobj = eval('(' + jsonstring + ')');
jsonobj = JSON.parse(jsonstring);
display = '<table width="100%" class="question uploadedfiles"><thead><tr><td width="20%">&nbsp;</td>';
if (show_title != 0)
display += '<th>'+uploadLang.headTitle+'</th>';
Expand Down

0 comments on commit 1d0e29a

Please sign in to comment.