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

rename field to element

Ivan Kuchinfeff488c4fc9
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 c8dd3a30705..f9f2d1f016d 100644
--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
@@ -96,12 +96,12 @@ export default class CustomFieldsController extends Controller {
toggleVisibility(hidden:boolean, elements:HTMLElement[]) {
elements
- .forEach((field) => {
- const wrapper = field.closest<HTMLElement>('.form--grouping') || field.closest<HTMLElement>('.form--field');
+ .forEach((element) => {
+ const wrapper = element.closest<HTMLElement>('.form--grouping') || element.closest<HTMLElement>('.form--field');
if (wrapper) {
wrapper.hidden = hidden;
} else {
- field.hidden = hidden;
+ element.hidden = hidden;
}
});
}