Skip to content

Commit

Permalink
return an empty results array if no blueprint found
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerobin committed Dec 2, 2016
1 parent 490d296 commit 20e52d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controller/Blueprints.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function getBlueprintsByIdentifier()

$blueprints = $this->getClassService()->getBlueprintsByIdentifier($this->getRequestParameter('identifier'));

$returnValue = array();
$returnValue['results'] = [];
foreach($blueprints as $blueprint){
$returnValue['results'][] = ['text' => $blueprint->getLabel(), 'id' => $blueprint->getUri()];
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'label' => 'Blueprints Extension',
'description' => 'Extension to manage Test Blueprints',
'license' => 'GPL-2.0',
'version' => '0.6.0',
'version' => '0.6.1',
'author' => 'Open Assessment Technologies SA',
'requires' => [
'tao' => '>=7.35.0'
Expand Down
2 changes: 1 addition & 1 deletion scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public function update($initialVersion)
$this->setVersion('0.4.0');
}

$this->skip('0.4.0', '0.6.0');
$this->skip('0.4.0', '0.6.1');
}
}

0 comments on commit 20e52d4

Please sign in to comment.