From dfa9945d8f5403bf4e75c902d9231c2a6a8e32c8 Mon Sep 17 00:00:00 2001 From: Wedge Date: Mon, 9 Sep 2019 20:42:27 +0300 Subject: [PATCH] Auto publish into testing if publish without QA is unchecked --- app/models/build_list.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 263c16fa9..80b69225c 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -659,8 +659,8 @@ class BuildList < ActiveRecord::Base if external_nodes.present? self.auto_publish_status = AUTO_PUBLISH_STATUS_NONE end - if auto_publish? && save_to_repository && !save_to_repository.publish_without_qa? - self.auto_publish_status = AUTO_PUBLISH_STATUS_NONE + if save_to_repository && !save_to_repository.publish_without_qa? + self.auto_publish_status = AUTO_PUBLISH_STATUS_TESTING end if auto_publish? || auto_publish_into_testing? self.auto_create_container = false