[Vtigercrm-developers] Maximum number of columns in any view
Alan Lord
alanslists at gmail.com
Sat May 16 14:29:11 GMT 2020
This bit of code in Vtiger_List_Js (from line 2352) could be better IMHO.
if (selectedFieldsEles.length > 15) {
app.helper.showErrorNotification({message:app.vtranslate('JS_ADD_MAX_15_ITEMS')});
return false;
}
I see 2 issues:
1. The limit is hardcoded here AND it is hardcooded in the CustomView_JS
class as below (there should be only ONE place this is set.
2. The translation label above basically means you can't change the
value if you wanted to anyway as the value is also hardcoded into the
translatable message label.
Al
On 16/05/2020 15:12, Alan Lord wrote:
> And here then:
>
> https://code.vtiger.com/vtiger/vtigercrm/blob/master/layouts/v7/modules/Vtiger/resources/List.js#L2352
>
>
> This parameter should only be in one place at least (if not
> configurable) and not in multiple locations...
>
> Al
>
>
> On 16/05/2020 14:13, Jitu wrote:
>> check this file layouts/v7/modules/CustomView/resources/CustomView.js
>>
>> /**
>> * Function which will register the select2 elements for columns selection
>> */
>> registerSelect2ElementForColumnsSelection:function() {
>> varselectElement= this.getColumnSelectElement();
>> vtUtils.showSelect2ElementView(selectElement,{maximumSelectionSize:15});
>> },
>> On 5/16/20 5:01 PM, Alan Lord wrote:
More information about the vtigercrm-developers
mailing list