Skip to content

Commit

Permalink
Merge pull request #5263 from solgenomics/topic/drone_imagery
Browse files Browse the repository at this point in the history
fix adding new drone vehicle
  • Loading branch information
lukasmueller authored Jan 9, 2025
2 parents 1d9dd70 + ed9df6a commit 0c784e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/SGN/Controller/AJAX/DroneImagery/DroneImageryUpload.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1358,10 +1358,11 @@ sub upload_drone_imagery_new_vehicle : Path('/api/drone_imagery/new_imaging_vehi
sub upload_drone_imagery_new_vehicle_GET : Args(0) {
my $self = shift;
my $c = shift;
$c->response->headers->header( "Access-Control-Allow-Origin" => '*' );

my $sp_person_id = $c->user() ? $c->user->get_object()->get_sp_person_id() : undef;
my $schema = $c->dbic_schema("Bio::Chado::Schema", $sp_person_id);
my $schema = $c->dbic_schema("Bio::Chado::Schema", undef, $sp_person_id);
my ($user_id, $user_name, $user_role) = _check_user_login($c);

my $vehicle_name = $c->req->param('vehicle_name');
my $vehicle_desc = $c->req->param('vehicle_description');
my $battery_names_string = $c->req->param('battery_names');
Expand Down

0 comments on commit 0c784e6

Please sign in to comment.