From fd83fd3a3ad6f9cc2f1ed6b08f5fdbc11bcde583 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Wed, 5 Sep 2018 14:14:21 -0700 Subject: [PATCH] this field is different in the input payload vs. the schema (cherry picked from commit 9ba4d8f41a78714d9e19e93d85fecd2280d5e009) --- lib/Conch/Controller/DatacenterRackLayout.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Conch/Controller/DatacenterRackLayout.pm b/lib/Conch/Controller/DatacenterRackLayout.pm index 09cd8fa67..7673c6daf 100644 --- a/lib/Conch/Controller/DatacenterRackLayout.pm +++ b/lib/Conch/Controller/DatacenterRackLayout.pm @@ -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); }