From 6107040bf5c29872c18fed624ce1a8c8489e750e Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 5 May 2021 14:42:19 -0700 Subject: [PATCH] Project: clear `decltype` and `declvalue` when project is no longer declarative --- src/lib/Hydra/Controller/Project.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/Hydra/Controller/Project.pm b/src/lib/Hydra/Controller/Project.pm index 20b3bd3b..c38ff6ad 100644 --- a/src/lib/Hydra/Controller/Project.pm +++ b/src/lib/Hydra/Controller/Project.pm @@ -171,6 +171,10 @@ sub updateProject { }); } else { $project->jobsets->search({ name => ".jobsets" })->delete; + $project->update( + { decltype => "" + , declvalue => "" + }); } }