db_filter_ui: Use first filter option as default

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-08-05 17:22:40 +02:00
committed by Chris Morgan
parent 63ef4f4e95
commit 14bba93d37

View File

@@ -224,17 +224,13 @@ class FilterInterface
{
$shEditor .= "<select name='i{$sColumn}Op$sId'>";
if($iId == -1)
{
$sText = 'criterion';
$sSel = " selected='selected'";
} else
if($iId != -1)
{
$sSel = '';
$sText = 'remove';
}
$shEditor .= "<option value='0'$sSel>-- $sText --</option>";
$shEditor .= "<option value='0'$sSel>-- $sText --</option>";
}
foreach($aTypes as $iType)
{