Skip to content

Commit

Permalink
Merge pull request #69 from oat-sa/release-4.2.1
Browse files Browse the repository at this point in the history
Release 4.2.1
  • Loading branch information
tikhanovichA authored Mar 22, 2018
2 parents 754782d + 2b5e868 commit 4546a7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'label' => 'extension-tao-outcomerds',
'description' => 'extension that allows a storage in relational database',
'license' => 'GPL-2.0',
'version' => '4.2.0',
'version' => '4.2.1',
'author' => 'Open Assessment Technologies SA',
'requires' => array(
'taoResultServer' => '>=6.2.0',
Expand Down
6 changes: 2 additions & 4 deletions model/RdsResultStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,8 @@ public function getResultByDelivery($delivery, $options = array())
}


if(isset($options['order'])){

$sql .= ' ORDER BY ?';
$params[] = $options['order'];
if(isset($options['order']) && in_array($options['order'], [self::DELIVERY_COLUMN, self::TEST_TAKER_COLUMN, self::RESULTS_TABLE_ID])){
$sql .= ' ORDER BY ' . $options['order'];
if(isset($options['orderdir']) && (strtolower($options['orderdir']) === 'asc' || strtolower($options['orderdir']) === 'desc')) {
$sql .= ' ' . $options['orderdir'];
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ public function update($initialVersion) {
$this->setVersion('2.2.0');
}

$this->skip('2.2.0','4.2.0');
$this->skip('2.2.0','4.2.1');
}
}

0 comments on commit 4546a7a

Please sign in to comment.