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? if external_nodes.present?
self.auto_publish_status = AUTO_PUBLISH_STATUS_NONE self.auto_publish_status = AUTO_PUBLISH_STATUS_NONE
end end
if auto_publish? && save_to_repository && !save_to_repository.publish_without_qa? if save_to_repository && !save_to_repository.publish_without_qa?
self.auto_publish_status = AUTO_PUBLISH_STATUS_NONE self.auto_publish_status = AUTO_PUBLISH_STATUS_TESTING
end end
if auto_publish? || auto_publish_into_testing? if auto_publish? || auto_publish_into_testing?
self.auto_create_container = false self.auto_create_container = false