diff --git a/app/models/profile.rb b/app/models/profile.rb index 461303b..8d6be64 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -288,6 +288,7 @@ class Profile < ActiveRecord::Base self.theme = template.theme self.custom_footer = template[:custom_footer] self.custom_header = template[:custom_header] + self.public_profile = template.public_profile # flush self.save_without_validation! diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index c03cbe8..c7583a2 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -272,7 +272,6 @@ td .button { } td.field-name { - color: #888; width: 150px; text-align: left; vertical-align: top; diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index e4699c7..400818e 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -1190,6 +1190,13 @@ class ProfileTest < Test::Unit::TestCase assert_equal 6, p.boxes_limit end + should 'copy public/private setting from template' do + template = fast_create(Profile, :public_profile => false) + p = fast_create(Profile) + p.apply_template(template) + assert_equal false, p.public_profile + end + should 'destroy tasks requested to it when destroyed' do p = Profile.create!(:name => 'test_profile', :identifier => 'test_profile') -- libgit2 0.21.2