From e17dc1a793817c535863d2e3e40754468d140fb8 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 2 Jul 2020 11:52:07 +0000 Subject: [PATCH] [IMP] web: form: labels of several occurrences of a field Before this commit, when the same field occurred multiple times in a form view, all occurrences were associated with the same id, and all occurrences of the corresponding label (if any) had the same 'for' attribute. As a consequence, besides the fact that there were warnings in the chrome console, clicking on any occurrence of the duplicated label focuses the first occurrence of the field. This commit generates a unique id for each pair label/field, when possible. However, there is a case that can't be handled automatically: when the label isn't automatically generated (field located outside a group, or with nolabel attribute set to "1"). Typically, in this case, there is a