Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
this field is different in the input payload vs. the schema
Browse files Browse the repository at this point in the history
(cherry picked from commit 9ba4d8f)
  • Loading branch information
karenetheridge authored and sungo committed Sep 5, 2018
1 parent 011ca3c commit fd83fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Conch/Controller/DatacenterRackLayout.pm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ sub update ($c) {
}
}

$input->{hardware_product_id} = delete $input->{product_id} if exists $input->{product_id};
$c->stash('rack_layout')->update({ %$input, updated => \'NOW()' });

return $c->status(303 => "/layout/".$c->stash('rack_layout')->id);
}

Expand Down

0 comments on commit fd83fd3

Please sign in to comment.