Commit 22059100 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4803 Added size handling to ObjectsAttribute as well

parent 03f8de7c
......@@ -71,8 +71,11 @@ class ObjectsAttribute extends GenericDialogAttribute
function renderOnlyFormInput()
{
if (($this->size < 15) && ($this->size < count($this->value))) {
$this->size = min(15, count($this->value));
}
$id = $this->getHtmlId();
$display = '<select multiple="multiple" name="row'.$id.'[]" id="row'.$id.'"'.
$display = '<select multiple="multiple" name="row'.$id.'[]" id="row'.$id.'" size="'.$this->size.'"'.
($this->disabled? ' disabled="disabled"':'').
' >'."\n";
foreach ($this->getDisplayValues() as $key => $value) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment