Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#64347] remove formula field from regular custom fields

Tobias Dillmann7d37ac98cfcd
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index 9ae12e18fdb..192fc485768 100644
--- a/app/views/custom_fields/_form.html.erb
+++ b/app/views/custom_fields/_form.html.erb
@@ -76,14 +76,6 @@ See COPYRIGHT and LICENSE files for more details.
</span>
</div>
- <div class="form--field" <%= format_dependent.attributes(:formula) %>>
- <%= f.text_field :formula,
- container_class: "-wide" %>
- <span class="form--field-instructions">
- <%= t("custom_fields.instructions.formula") %>
- </span>
- </div>
-
<% if @custom_field.new_record? || @custom_field.multi_value_possible? %>
<div class="form--field" <%= format_dependent.attributes(:multiSelect) %>>
<%= f.check_box :multi_value,
diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
index c7e5710789e..4ae929c6518 100644
--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
@@ -47,7 +47,6 @@ export default class CustomFieldsController extends Controller {
'multiSelect',
'possibleValues',
'regexp',
- 'formula',
'searchable',
'textOrientation',
@@ -81,7 +80,6 @@ export default class CustomFieldsController extends Controller {
declare readonly multiSelectTargets:HTMLElement[];
declare readonly possibleValuesTargets:HTMLElement[];
declare readonly regexpTargets:HTMLElement[];
- declare readonly formulaTargets:HTMLElement[];
declare readonly searchableTargets:HTMLInputElement[];
declare readonly textOrientationTargets:HTMLElement[];