Skip to content

Commit 098c1c7

Browse files
committed
Fix DMS tag style selection values
Signed-off-by: Pierre Belloy <[email protected]>
1 parent e6f9e45 commit 098c1c7

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

axelor-core/src/main/resources/views/DMS.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@
126126
<!-- DMSFileTag views -->
127127
<selection name="dms.tag.style.selection">
128128
<option value="label">Default</option>
129-
<option value="label-success">Success</option>
130-
<option value="label-warning">Warning</option>
131-
<option value="label-important">Important</option>
132-
<option value="label-info">Information</option>
133-
<option value="label-inverse">Inverse</option>
129+
<option value="label-bg-success">Success</option>
130+
<option value="label-bg-warning">Warning</option>
131+
<option value="label-bg-important">Important</option>
132+
<option value="label-bg-info">Information</option>
133+
<option value="label-bg-inverse">Inverse</option>
134134
</selection>
135135

136136
<grid name="dms-tag-grid" title="Tags" model="com.axelor.dms.db.DMSFileTag" editable="true">

documentation/modules/ROOT/pages/migrations/migration-7.3.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,11 @@ linked grid view.
5858
Built-in classes `label-warning`, `label-important`, `label-\{variant\}`, ... that automatically applied background
5959
color have been removed. Now `label-\{variant\}` class only change text color. In order to apply background color, use
6060
`label-bg-\{variant\}` class like `label-bg-warning`. Such classes are commonly used in custom views or in viewers. Do
61-
appropriate changes if background color is needed.
61+
appropriate changes if background color is needed.
62+
63+
As part of these changes, `dms.tag.style.selection` selection values has been updated. You need to run following sql
64+
query in order to update the database values :
65+
66+
```sql
67+
UPDATE dms_file_tag SET style = CONCAT ('label-bg-', SPLIT_PART(style, '-', 2)) WHERE style LIKE 'label-%';
68+
```

0 commit comments

Comments
 (0)