NEW : continue hidden extrafield feature
This commit is contained in:
parent
66ea799eb7
commit
c7a9f26ee5
@ -665,6 +665,7 @@ class ExtraFields
|
|||||||
$param=$this->attribute_param[$key];
|
$param=$this->attribute_param[$key];
|
||||||
$perms=$this->attribute_perms[$key];
|
$perms=$this->attribute_perms[$key];
|
||||||
$list=$this->attribute_list[$key];
|
$list=$this->attribute_list[$key];
|
||||||
|
$hidden=$this->attribute_hidden[$key];
|
||||||
|
|
||||||
if (empty($showsize))
|
if (empty($showsize))
|
||||||
{
|
{
|
||||||
@ -1143,6 +1144,9 @@ class ExtraFields
|
|||||||
$out.='Error bad setup of extrafield';
|
$out.='Error bad setup of extrafield';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!empty($hidden)) {
|
||||||
|
$out='<input type="hidden" value="'.$value.'" name="'.$keysuffix.'options_'.$key.$keyprefix.'" id="'.$keysuffix.'options_'.$key.$keyprefix.'"/>';
|
||||||
|
}
|
||||||
/* Add comments
|
/* Add comments
|
||||||
if ($type == 'date') $out.=' (YYYY-MM-DD)';
|
if ($type == 'date') $out.=' (YYYY-MM-DD)';
|
||||||
elseif ($type == 'datetime') $out.=' (YYYY-MM-DD HH:MM:SS)';
|
elseif ($type == 'datetime') $out.=' (YYYY-MM-DD HH:MM:SS)';
|
||||||
@ -1171,6 +1175,7 @@ class ExtraFields
|
|||||||
$params=$this->attribute_param[$key];
|
$params=$this->attribute_param[$key];
|
||||||
$perms=$this->attribute_perms[$key];
|
$perms=$this->attribute_perms[$key];
|
||||||
$list=$this->attribute_list[$key];
|
$list=$this->attribute_list[$key];
|
||||||
|
$hidden=$this->attribute_hidden[$key];
|
||||||
|
|
||||||
$showsize=0;
|
$showsize=0;
|
||||||
if ($type == 'date')
|
if ($type == 'date')
|
||||||
@ -1406,6 +1411,10 @@ class ExtraFields
|
|||||||
//print $type.'-'.$size;
|
//print $type.'-'.$size;
|
||||||
$out=$value;
|
$out=$value;
|
||||||
|
|
||||||
|
if (!empty($hidden)) {
|
||||||
|
$out='';
|
||||||
|
}
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user