diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-25 14:55:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-25 14:55:36 +0000 |
commit | b40d66f39fa8a0425ce2a08d4cf4007d814b97fb (patch) | |
tree | 87940a49e073ba7d61af294157b48fa1fdf9ba8c /app/models | |
parent | 8d713ae6ca643db8ce548b143635dee361f36ffe (diff) | |
download | redmine-b40d66f39fa8a0425ce2a08d4cf4007d814b97fb.tar.gz redmine-b40d66f39fa8a0425ce2a08d4cf4007d814b97fb.zip |
Option for long text custom fields to be displayed under the description field (#21705).
Based on patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16251 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/custom_field.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 717df95e8..72cf0ea7c 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -89,7 +89,8 @@ class CustomField < ActiveRecord::Base 'edit_tag_style', 'user_role', 'version_status', - 'extensions_allowed' + 'extensions_allowed', + 'full_width_layout' def format @format ||= Redmine::FieldFormat.find(field_format) @@ -186,6 +187,10 @@ class CustomField < ActiveRecord::Base format.totalable_supported end + def full_width_layout? + full_width_layout == '1' + end + # Returns a ORDER BY clause that can used to sort customized # objects by their value of the custom field. # Returns nil if the custom field can not be used for sorting. |