Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Fix changeFieldControl (custom UI extensions.) #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/bootstrap/jsonToScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const createField = (itemId, field) => `
`

const createChangeFieldControl = (itemId, field) => {
const { fieldId, widgetId, settings } = field
const baseString = `${itemId}.changeFieldControl("${fieldId}", "builtin", "${widgetId}"`
const { fieldId, widgetId, settings, widgetNamespace } = field
const baseString = `${itemId}.changeFieldControl("${fieldId}", "${widgetNamespace}", "${widgetId}"`
return settings ? `${baseString}, ${JSON.stringify(settings)});` : `${baseString});`
}

Expand Down