Commit 180b53df9877223128574f6da00ebf65c9093f80
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'stable' of gitlab.com:participa/noosfero into stable
Showing
7 changed files
with
8 additions
and
17 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -1321,7 +1321,9 @@ module ApplicationHelper |
1321 | 1321 | end |
1322 | 1322 | else |
1323 | 1323 | options = options_for_select(templates.collect{ |template| [template.name, template.id]}) |
1324 | - content_tag('div', content_tag('label', _('Profile organization'), :class => 'formlabel') + (select_tag 'profile_data[template_id]', options, :onchange => 'show_fields_for_template(this);')) | |
1324 | + content_tag('div', | |
1325 | + content_tag('div', content_tag('label', _('Profile organization'), :class => 'formlabel') + (select_tag 'profile_data[template_id]', options, :onchange => 'show_fields_for_template(this);')), | |
1326 | + :id => 'template-options') | |
1325 | 1327 | end |
1326 | 1328 | end |
1327 | 1329 | ... | ... |
app/models/comment.rb
... | ... | @@ -46,7 +46,7 @@ class Comment < ActiveRecord::Base |
46 | 46 | |
47 | 47 | acts_as_having_settings :field => :setting |
48 | 48 | |
49 | - xss_terminate :only => [ :body, :title, :name ], :with => 'white_list', :on => 'validation' | |
49 | + xss_terminate :only => [ :body, :title, :name ], :on => 'validation' | |
50 | 50 | |
51 | 51 | def comment_root |
52 | 52 | (reply_of && reply_of.comment_root) || self | ... | ... |
app/views/cms/why_categorize.html.erb
app/views/shared/logged_in/xmpp_chat.html.erb
lib/api/entities.rb
test/functional/manage_products_controller_test.rb
... | ... | @@ -150,7 +150,7 @@ class ManageProductsControllerTest < ActionController::TestCase |
150 | 150 | category2 = fast_create(ProductCategory, :name => 'Category 2', :parent_id => category1.id) |
151 | 151 | category3 = fast_create(ProductCategory, :name => 'Category 3', :parent_id => category2.id) |
152 | 152 | get :new, :profile => @enterprise.identifier |
153 | - assert_tag :tag => 'select', :attributes => { :id => 'category_id' }, :descendant => { :tag => 'option', :content => category1.name } | |
153 | + assert_tag :tag => 'select', :attributes => { :id => 'category_id' }, :descendant => { :tag => 'option', :content => category1.name + " »" } | |
154 | 154 | end |
155 | 155 | |
156 | 156 | should "create new product categorized" do | ... | ... |
test/unit/person_notifier_test.rb
... | ... | @@ -214,17 +214,6 @@ class PersonNotifierTest < ActiveSupport::TestCase |
214 | 214 | assert_equal 1, Delayed::Job.count |
215 | 215 | end |
216 | 216 | |
217 | - should 'NotifyJob failed jobs create a new NotifyJob on failure' do | |
218 | - Delayed::Worker.max_attempts = 1 | |
219 | - Delayed::Job.enqueue(PersonNotifier::NotifyJob.new(@member.id)) | |
220 | - | |
221 | - PersonNotifier.any_instance.stubs(:notify).raises('error') | |
222 | - | |
223 | - process_delayed_job_queue | |
224 | - jobs = PersonNotifier::NotifyJob.find(@member.id) | |
225 | - assert !jobs.select {|j| !j.failed? && j.last_error.nil? }.empty? | |
226 | - end | |
227 | - | |
228 | 217 | private |
229 | 218 | |
230 | 219 | def notify | ... | ... |