Minor fixes / avoid warnings

This commit is contained in:
Nathan Gray 2012-04-24 19:44:50 +00:00
parent 5e76d4197e
commit d194845e4e
3 changed files with 7 additions and 2 deletions

View File

@ -289,6 +289,11 @@ class etemplate_widget_menupopup extends etemplate_widget
'label' => $s, 'label' => $s,
'title' => $cat['description'], 'title' => $cat['description'],
); );
// For multi-select, send data too
if($rows > 1)
{
$options[$cat['id']]['data'] = $cat['data'];
}
} }
// preserv unavailible cats (eg. private user-cats) // preserv unavailible cats (eg. private user-cats)
/* TODO /* TODO

View File

@ -54,7 +54,7 @@ class etemplate_widget_projectmanager extends etemplate_widget_transformer
$extension, $extension,
$template $template
); );
self::$request->sel_options[$form_name] += $cell['sel_options']; self::$request->sel_options[$form_name] += (array)$cell['sel_options'];
// if no_lang was modified, forward modification to the client // if no_lang was modified, forward modification to the client
if ($cell['no_lang'] != $this->attr['no_lang']) if ($cell['no_lang'] != $this->attr['no_lang'])

View File

@ -131,7 +131,7 @@ abstract class etemplate_widget_transformer extends etemplate_widget
case 'sel_options': case 'sel_options':
self::$request->sel_options[$form_name] = $val; self::$request->sel_options[$form_name] = $val;
break; break;
case 'type': // not an attribute in etempalte2 case 'type': // not an attribute in etemplate2
default: default:
self::setElementAttribute($form_name, $attr, $val); self::setElementAttribute($form_name, $attr, $val);
break; break;