Skip to content

Commit 52cff0f

Browse files
committed
Pass 0 instead of undefined to the parent select in quick resource create window
1 parent c17b463 commit 52cff0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/assets/modext/widgets/resource/modx.tree.resource.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ MODx.getQRSettings = function(id,va) {
11461146
,anchor: '100%'
11471147
,parentcmp: 'modx-'+id+'-parent'
11481148
,contextcmp: 'modx-'+id+'-context_key'
1149-
,currentid: va['id']
1149+
,currentid: va['id'] || 0
11501150
},{
11511151
xtype: 'modx-combo-class-derivatives'
11521152
,fieldLabel: _('resource_type')

0 commit comments

Comments
 (0)