[Vtigercrm-commits] [vtiger development] #4161: Combo and multi select Custom Fields do not display already entered list in Settings
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Sep 13 06:19:59 EDT 2007
#4161: Combo and multi select Custom Fields do not display already entered list in
Settings
-----------------------------+----------------------------------------------
Reporter: OlivierAufrere | Owner: simmi
Type: defect | Status: reopened
Priority: unassigned | Milestone: 5.0.4
Component: vtigercrm | Version: 5.0.3
Resolution: | Keywords:
-----------------------------+----------------------------------------------
Changes (by OlivierAufrere):
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:6 simmi]:
Hi Simi,
Maybee I'm stupid but this file does not seem to solve the bug I have (I
tried a copy/paste of it in mine, and the bug is still there)
It takes 2 sec:[[BR]]
look at :[[BR]]
[http://trac.vtiger.com/cgi-
bin/trac.cgi/browser/vtigercrm/branches/5.0.4/modules/Settings/CreateCustomField.php]
lines 75 and 76[[BR]]
$customfield_typename is translated by getCustomFieldTypeName (ok)[[BR]]
getFldTypeandLengthValue($customfield_typename,$customfield_typeofdata);[[BR]]
here the first var is $customfield_typename which is translated.
in [http://trac.vtiger.com/cgi-
bin/trac.cgi/browser/vtigercrm/branches/5.0.4/include/CustomFieldUtil.php][[BR]]
getFldTypeandLengthValue($label,$typeofdata) line 163[[BR]]
then according to the above file, $label must be a translated field[[BR]]
and line 221 elseif($label == 'Multi-Select Combo Box')[[BR]]
the test is in english.
My solution:[[BR]]
I did not find other use of getFldTypeandLengthValue, then just add:[[BR]]
global $mod_strings,$app_strings;[[BR]]
and use the LBL translation that is in getCustomFieldTypeName
function[[BR]]
ex:'Multi-Select Combo Box'->$mod_strings['LBL_MULTISELECT_COMBO'][[BR]]
I reopen this ticket for the last time with the hope that you will be able
to explain me what is wrong in my above explanation.
Regards,[[BR]]
Olivier
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4161#comment:7>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list