summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Switch to zeitwerk autoloader (#29914, #32938).Marius Balteanu2021-11-171-2/+0
| | | | | | Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21287 e93f8b46-1217-0410-a6f0-8f06a7374b81
* DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | sensitive comparison in Rails 6.1. (#29914, #32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20880 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Create custom field by copy (#34307).Go MAEDA2020-12-261-0/+20
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@20692 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of app/models/custom_field.rbToshi MARUYAMA2020-12-121-14/+24
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20637 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of ↵Toshi MARUYAMA2020-11-101-2/+2
| | | | | | app/models/custom_field.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20331 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to app/models/custom_field.rbToshi MARUYAMA2020-11-051-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20267 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/custom_field.rbToshi MARUYAMA2020-10-031-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20111 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Unify CSS classes for custom fields in issue#show, issue#edit and ↵Go MAEDA2020-04-111-1/+1
| | | | | | | | | issue#bulk_edit (#32471). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19690 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19478 (#32897).Go MAEDA2020-01-301-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2020-01-281-1/+1
| | | | | | | | | sensitive comparison in Rails 6.1.' (#32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in app/models/custom_field.rbToshi MARUYAMA2019-11-091-6/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move custom field classes to a method (#30994).Go MAEDA2019-03-091-0/+4
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17937 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show Edit/Preview tabs for full width layout custom fields with text ↵Go MAEDA2019-02-121-0/+4
| | | | | | | | | formatting enabled (#29712). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17858 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unused and broken method CustomField.visibility_condition (#29160).Jean-Philippe Lang2018-09-231-13/+0
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17507 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-3/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes typo in safe attributes declaration (#25724).Jean-Philippe Lang2017-06-061-1/+1
| | | | | | Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@16615 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option for long text custom fields to be displayed under the description ↵Jean-Philippe Lang2017-01-251-1/+6
| | | | | | | | field (#21705). Based on patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16251 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validate length of custom field regexp (#24283).Jean-Philippe Lang2017-01-041-1/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16134 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use symbol instead of string for 'position' (#24013)Toshi MARUYAMA2016-11-281-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16008 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add length validations for string fields (#24283).Jean-Philippe Lang2016-11-191-0/+1
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@15989 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to specify allowed extensions for a file custom field (#6719).Jean-Philippe Lang2016-10-231-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15921 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds file custom field format (#6719).Jean-Philippe Lang2016-10-231-12/+23
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use safe_attributes for custom fields.Jean-Philippe Lang2016-07-171-1/+24
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15689 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limits the schemes that custom field URL patterns can use (#22925).Jean-Philippe Lang2016-06-011-0/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15435 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces acts_as_list with an implementation that handles #position= (#12909).Jean-Philippe Lang2016-04-171-1/+1
| | | | | | Objects are reordered using the regular attribute writer #position= and AR callbacks. git-svn-id: http://svn.redmine.org/redmine/trunk@15335 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved custom fields totals logic to FieldFormat (#21413).Jean-Philippe Lang2015-12-051-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14944 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Enumeration custom field format (#21060).Jean-Philippe Lang2015-10-251-0/+4
| | | | | | Similar to List format but stores possible values as records. git-svn-id: http://svn.redmine.org/redmine/trunk@14745 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display all versions in query filter (#19271).Jean-Philippe Lang2015-09-261-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14623 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use same logic for finding user as a custom field (#950).Jean-Philippe Lang2015-08-151-13/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14503 e93f8b46-1217-0410-a6f0-8f06a7374b81
* #downcase no longer needed after r14484 (#20369).Jean-Philippe Lang2015-08-151-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14502 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use String#casecmp for case insensitive comparison (#20369)Toshi MARUYAMA2015-08-121-1/+1
| | | | | | Contributed by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14484 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CustomField#possible_values may raise undefined method `force_encoding' ↵Jean-Philippe Lang2015-03-141-2/+2
| | | | | | error (#19316). git-svn-id: http://svn.redmine.org/redmine/trunk@14079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use a CustomFieldValue instead of CustomValue.Jean-Philippe Lang2014-12-201-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13774 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Order scopes cleanup.Jean-Philippe Lang2014-10-291-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13526 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #read/#write_attribute instead of #super when overwriting default ↵Jean-Philippe Lang2014-03-151-2/+3
| | | | | | | | accessors (#16319). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@12968 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that non-empty blank strings as custom field values are not properly ↵Jean-Philippe Lang2014-02-281-3/+1
| | | | | | validated (#16169). git-svn-id: http://svn.redmine.org/redmine/trunk@12938 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevents no method errors when reloading in development mode.Jean-Philippe Lang2014-01-191-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12671 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reduces the number of subqueries when searching with many custom fields set ↵Jean-Philippe Lang2014-01-051-2/+3
| | | | | | as searchable (#15781). git-svn-id: http://svn.redmine.org/redmine/trunk@12481 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged custom fields format refactoring.Jean-Philippe Lang2013-12-141-160/+52
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81