updated webform, uuid, synonyms modules

This commit is contained in:
Bachir Soussi Chiadmi
2017-07-25 19:28:08 +02:00
parent ed483507e5
commit b9c809d2c7
31 changed files with 613 additions and 73 deletions

View File

@@ -611,7 +611,7 @@ function webform_get_submissions($filters = array(), $header = NULL, $pager_coun
// No need to find SIDs if it was given to us.
if (isset($filters['sid'])) {
$sids = array($filters['sid']);
$sids = (array) $filters['sid'];
}
// Build the list of SIDs that need to be retrieved.
else {
@@ -705,7 +705,12 @@ function webform_get_submissions($filters = array(), $header = NULL, $pager_coun
$function($submissions);
}
return $submissions;
// Reorder submissions to reflect table header sorting.
$ordered_submissions = array();
foreach($sids as $sid) {
$ordered_submissions[$sid] = $submissions[$sid];
}
return $ordered_submissions;
}
/**

View File

@@ -24,9 +24,9 @@ files[] = tests/permissions.test
files[] = tests/submission.test
files[] = tests/webform.test
; Information added by Drupal.org packaging script on 2016-10-19
version = "7.x-3.25"
; Information added by Drupal.org packaging script on 2017-02-09
version = "7.x-3.27"
core = "7.x"
project = "webform"
datestamp = "1476870845"
datestamp = "1486665496"