File tree 5 files changed +13
-7
lines changed
Resources/public/js/pimcore/workflow
5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -260,15 +260,15 @@ protected function sanitizeConfiguration($configuration): array
260
260
261
261
if (isset ($ transitionConfig ['options ' ]['notes ' ]['additionalFields ' ])) {
262
262
foreach ($ transitionConfig ['options ' ]['notes ' ]['additionalFields ' ] as &$ additionalField ) {
263
- if (!$ additionalField ['setterFn ' ]) {
263
+ if (isset ( $ additionalField [ ' setterFn ' ]) && !$ additionalField ['setterFn ' ]) {
264
264
unset ($ additionalField ['setterFn ' ]);
265
265
}
266
266
267
- if (!$ additionalField ['title ' ]) {
267
+ if (isset ( $ additionalField [ ' title ' ]) && !$ additionalField ['title ' ]) {
268
268
unset ($ additionalField ['title ' ]);
269
269
}
270
270
271
- if (!$ additionalField ['required ' ]) {
271
+ if (isset ( $ additionalField [ ' required ' ]) && !$ additionalField ['required ' ]) {
272
272
unset ($ additionalField ['required ' ]);
273
273
}
274
274
}
Original file line number Diff line number Diff line change @@ -175,7 +175,13 @@ pimcore.plugin.workflow.global_action = Class.create({
175
175
value : globalAction . getId ( ) ,
176
176
fieldLabel : t ( 'workflow_global_action_id' ) ,
177
177
allowBlank : false ,
178
- regex : / ^ [ a - z A - Z _ ] + $ /
178
+ regex : / ^ [ a - z A - Z _ 0 - 9 ] + $ /
179
+ } ,
180
+ {
181
+ xtype : 'textfield' ,
182
+ name : 'label' ,
183
+ value : globalAction . get ( 'label' ) ,
184
+ fieldLabel : t ( 'workflow_label' ) ,
179
185
} ,
180
186
{
181
187
xtype : 'textfield' ,
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ pimcore.plugin.workflow.item = Class.create({
337
337
value : this . id ,
338
338
fieldLabel : t ( 'workflow_name' ) ,
339
339
allowBlank : false ,
340
- regex : / ^ [ a - z A - Z _ ] + $ /
340
+ regex : / ^ [ a - z A - Z _ 0 - 9 ] + $ /
341
341
} ,
342
342
{
343
343
xtype : 'checkbox' ,
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ pimcore.plugin.workflow.place = Class.create({
103
103
value : place . getId ( ) ,
104
104
fieldLabel : t ( 'workflow_place_id' ) ,
105
105
allowBlank : false ,
106
- regex : / ^ [ a - z A - Z _ ] + $ /
106
+ regex : / ^ [ a - z A - Z _ 0 - 9 ] + $ /
107
107
} ,
108
108
{
109
109
xtype : 'textfield' ,
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ pimcore.plugin.workflow.transition = Class.create({
226
226
value : transition . getId ( ) ,
227
227
fieldLabel : t ( 'workflow_transition_id' ) ,
228
228
allowBlank : false ,
229
- regex : / ^ [ a - z A - Z _ ] + $ /
229
+ regex : / ^ [ a - z A - Z _ 0 - 9 ] + $ /
230
230
} ,
231
231
232
232
{
You can’t perform that action at this time.
0 commit comments