diff --git a/contrib/mobile/iOS/Onelab/ParametersViewController.mm b/contrib/mobile/iOS/Onelab/ParametersViewController.mm index b03d090202e3b16f3ff56e089b5c75922063e8cc..be441a921121a1270eff4fd61408debf9a7f9ff5 100644 --- a/contrib/mobile/iOS/Onelab/ParametersViewController.mm +++ b/contrib/mobile/iOS/Onelab/ParametersViewController.mm @@ -159,7 +159,7 @@ if(found) continue; // the parameter is in the tableView // The section have to be create NSMutableArray *newSection = [[NSMutableArray alloc] init]; - [self addSection:newSection withTitle:sectiontitle withParameterNumber:number[0]]; + [self addSection:newSection withTitle:sectiontitle withParameterNumber:number[i]]; } std::vector<onelab::string> string; @@ -191,7 +191,7 @@ if(found) continue; // the parameter is in the tableView // The section have to be create NSMutableArray *newSection = [[NSMutableArray alloc] init]; - [self addSection:newSection withTitle:sectiontitle withParameterString:string[0]]; + [self addSection:newSection withTitle:sectiontitle withParameterString:string[i]]; } // check for hidden/deleted parameters