Added Valid and enabled Form::select sorting
This commit is contained in:
@@ -81,6 +81,11 @@ abstract class lnApp_Form extends Kohana_Form {
|
||||
unset($attributes['oneonly']);
|
||||
}
|
||||
|
||||
if (isset($attributes['sort']) AND $attributes['sort']) {
|
||||
asort($options);
|
||||
unset($attributes['sort']);
|
||||
}
|
||||
|
||||
return sprintf(static::_controlgroup($name,$attributes),parent::select($name,$options,$selected,$attributes));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user