Skip to content

Inline-edit: boolean fields are always unchecked with non-English language package

this issue #1001 (closed) is repeated in

layouts/v7/modules/Calendar/ListViewRecordActions.tpl:17
{if $LISTVIEW_ENTRY->get('starred') eq 'Yes'}

layouts/v7/modules/Documents/ListViewRecordActions.tpl:18
{if $LISTVIEW_ENTRY->get('starred') eq 'Yes'}

Moreover: in detailView, checkbox inline-edit, with non-English language, always have value=false: indistinctly un-checked (it's value-indipendent)

This because field data-field-info contains value='<display value>': it should be value='<raw value>'

Incriminated code is

layouts/v7/modules/Vtiger/resources/Detail.js:1139
var customHandlingFields = ['owner','ownergroup','picklist','multipicklist','reference','currencyList','text'];

customHandlingFields doesn't contain 'boolean'

IMHO, there should be checked following lines too:

layouts/v7/modules/Vtiger/resources/Detail.js:1271
var customHandlingFields = ['owner','ownergroup','picklist','multipicklist','reference','boolean']; 

layouts/v7/modules/Vtiger/resources/List.js:756
var customHandlingFields = ['owner', 'ownergroup', 'picklist', 'multipicklist', 'reference', 'string', 'url', 'currency', 'text', 'email'];