$html = '';
$multi = is_array($values) ? true : false;
+ #if ($db = $this->db() and $db->type == 'ldap') $multi = true;
+ if ($db = $this->db() and $fct=$db->conf_type('html_edit_multi')) $multi = $fct($this);
$suff = $multi ? '[]' : '';
if ($type === null) $type = $this->html_type();
$table->fields_only($row,$fields); # reorder by fields
return $row;
},
+ 'html_edit_multi' => function($field) {
+ $r = !in_array($field->name,[
+ 'dn',
+ 'cn',
+ 'sn',
+ 'uid',
+ 'gid',
+ 'homeDirectory',
+ 'displayName',
+ 'initials',
+ 'loginShell',
+ ]);
+ return $r;
+ },
'html_edit_row' => function(&$table,&$values) {
$table->db()->ldap->prepare([
'base' => $values['dn'],