diff options
author | Go MAEDA <maeda@farend.jp> | 2019-02-12 11:50:54 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-02-12 11:50:54 +0000 |
commit | b6592a73e89958858e6378649b3aafa6cf4583f2 (patch) | |
tree | 59870f6f4b98a3802c0cd2a08dbb053cae04fc3b /app/models/custom_field.rb | |
parent | cbc34f2c5b3cc0e40144886cc37d5c6c1ec9839e (diff) | |
download | redmine-b6592a73e89958858e6378649b3aafa6cf4583f2.tar.gz redmine-b6592a73e89958858e6378649b3aafa6cf4583f2.zip |
Show Edit/Preview tabs for full width layout custom fields with text formatting enabled (#29712).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17858 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r-- | app/models/custom_field.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 008ef49f9..1c71dfad9 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -190,6 +190,10 @@ class CustomField < ActiveRecord::Base full_width_layout == '1' end + def full_text_formatting? + text_formatting == 'full' + 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. |