Project

General

Profile

Actions

Patch #39699

closed

More flexible CustomField usage for relations

Added by Alexander Meindl about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The change in #38772 prevents usage, if a class is a subclass of CustomField, e.g UserCustomField. No filter group name is used, because of this change. "Translation missing: de.field_cf_19" is used instead of the name of the custom field.

This patch solve this problem.

   def <=>(field)
-    return nil unless field.is_a?(CustomField)
+    return nil unless field.is_a?(self.class)

     position <=> field.position
   end

See https://www.redmine.org/projects/redmine/repository/svn/diff/trunk/app/models/custom_field.rb?utf8=%E2%9C%93&rev=22269&rev_to=22013


Files

custom_field.patch (392 Bytes) custom_field.patch Alexander Meindl, 2023-11-22 19:59
Actions #1

Updated by Alexander Meindl about 1 year ago

The patch does not work, sorry. I suppose I have to search for the real solution for that.

This issue can be closed, I can create a new issue, if I've more information.

Actions #2

Updated by Holger Just about 1 year ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF