mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Do not die if select custom field is not fully set up
This commit is contained in:
parent
d18a0578b1
commit
8e657aeb0e
@ -68,6 +68,7 @@ class customfields
|
||||
* @var Description of the options or value format for each cf_type
|
||||
*/
|
||||
public static $type_option_help = array(
|
||||
'search' => 'set get_rows, get_title and id_field, or use @path to read options from a file in EGroupware directory',
|
||||
'select' => 'each value is a line like id[=label], or use @path to read options from a file in EGroupware directory',
|
||||
'radio' => 'each value is a line like id[=label], or use @path to read options from a file in EGroupware directory',
|
||||
'button' => 'each value is a line like label=[javascript]'
|
||||
|
@ -438,6 +438,8 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
},
|
||||
_setup_ajax_select: function(field_name, field, attrs) {
|
||||
var attributes = ['get_rows','get_title','id_field','template'];
|
||||
if(field.values)
|
||||
{
|
||||
for(var i = 0; i < attributes.length; i++)
|
||||
{
|
||||
if(typeof field.values[attributes[i]] !== 'undefined')
|
||||
@ -445,6 +447,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
attrs[attributes[i]] = field.values[attributes[i]];
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
_setup_float: function(field_name, field, attrs) {
|
||||
|
Loading…
Reference in New Issue
Block a user