Auto publish into testing if publish without QA is unchecked

This commit is contained in:
Wedge 2019-09-09 20:42:27 +03:00
parent b7e2634e7b
commit dfa9945d8f
1 changed files with 2 additions and 2 deletions

View File

@ -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