Project

General

Profile

« Previous | Next » 

Revision cbfa3f4b

Added by boaz shust over 5 years ago

Fixes #24870 - show a setting does not have a default value (#6089)

Signed-off-by: Boaz Shuster <>

View differences:

app/helpers/application_helper.rb
update_url = options[:update_url] || url_for(object)
type = options[:type]
title = options[:title]
placeholder = options[:placeholder]
select_values = [true, false].include?(value) ? [_('Yes'), _('No')] : options[:select_values]
editable(object, property, {:type => type, :title => title, :value => value, :class => klass, :source => select_values, :url => update_url}.compact)
editable(object, property, {:type => type, :title => title, :value => value, :class => klass, :source => select_values, :url => update_url, :placeholder => placeholder}.compact)
end
def documentation_url(section = "", options = {})

Also available in: Unified diff