mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSformElement_select_object : Added filter parameter
This commit is contained in:
parent
15792235e3
commit
c2e3c8d60a
2 changed files with 3 additions and 2 deletions
|
@ -68,6 +68,7 @@ class LSformElement_select_object extends LSformElement {
|
|||
'addBtn' => _('Modify'),
|
||||
'deleteBtns' => _('Delete'),
|
||||
'multiple' => (($this -> params['multiple'])?1:0),
|
||||
'filter64' => (($this -> params['html_options']['selectable_object']['filter'])?base64_encode($this -> params['html_options']['selectable_object']['filter']):''),
|
||||
'noValueLabel' => _('No set value'),
|
||||
'noResultLabel' => _('No result')
|
||||
)
|
||||
|
@ -150,7 +151,7 @@ class LSformElement_select_object extends LSformElement {
|
|||
if (is_array($this -> params['html_options']['selectable_object'])) {
|
||||
if (LSsession :: loadLSobject($this -> params['html_options']['selectable_object']['object_type'])) {
|
||||
$obj = new $this -> params['html_options']['selectable_object']['object_type']();
|
||||
$ret = $obj -> getSelectArray($pattern,NULL,$this -> params['html_options']['selectable_object']['display_name_format']);
|
||||
$ret = $obj -> getSelectArray($pattern,NULL,$this -> params['html_options']['selectable_object']['display_name_format'],false,true,$this -> params['html_options']['selectable_object']['filter']);
|
||||
if (is_array($ret)) {
|
||||
return $ret;
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ var LSformElement_select_object_field = new Class({
|
|||
varLSsmoothbox.asNew();
|
||||
varLSsmoothbox.addEvent('valid',this.onLSsmoothboxValid.bind(this));
|
||||
varLSsmoothbox.displayValidBtn();
|
||||
varLSsmoothbox.openURL('select.php?LSobject='+this.params['object_type']+((this.params['multiple'])?'&multiple=1':''),{width: 635});
|
||||
varLSsmoothbox.openURL('select.php?LSobject='+this.params['object_type']+((this.params['multiple'])?'&multiple=1':'')+((this.params['filter64'])?'&filter64='+this.params['filter64']:''),{width: 635});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue