- fixed a bug where Structures are not shown/updated, #640

- upgraded "pathfinder_esi" Composer dependency `v1.2.4` -> 'v1.2.5'
This commit is contained in:
Mark Friedrich
2018-07-16 18:43:52 +02:00
parent 18ce4f5137
commit 577edfc928
3 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ class Structure extends Controller\AccessController {
* @var $structure Model\StructureModel
*/
$structure = Model\BasicModel::getNew('StructureModel');
foreach ($structuresData as $structureData){
foreach($structuresData as $structureData){
// reset on loop start because of potential "continue"
$structure->reset();
@@ -46,7 +46,7 @@ class Structure extends Controller\AccessController {
}
}elseif( !isset($structureData['id']) ){
// from clipboard -> search by structure by name
$structure->getByName($activeCharacter->getCorporation(), (string)$structureData['name']);
$structure->getByName($activeCharacter->getCorporation(), (string)$structureData['name'], (int)$structureData['systemId']);
}
$newStructure = $structure->dry();