Skip to content

Commit

Permalink
Fix the case for default value of internal is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
hsong-rh committed Sep 19, 2018
1 parent a0c9e02 commit 7de5642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/service_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ServiceTemplate < ApplicationRecord
scope :without_service_template_catalog_id, -> { where(:service_template_catalog_id => nil) }
scope :with_existent_service_template_catalog_id, -> { where.not(:service_template_catalog_id => nil) }
scope :displayed, -> { where(:display => true) }
scope :public_service_templates, -> { where.not(:internal => true) }
scope :public_service_templates, -> { where(:internal => [false, nil]) }

def self.catalog_item_types
ci_types = Set.new(Rbac.filtered(ExtManagementSystem.all).flat_map(&:supported_catalog_types))
Expand Down

0 comments on commit 7de5642

Please sign in to comment.