Improved service display
This commit is contained in:
@@ -36,7 +36,7 @@ class StaticList_RecurSchedule extends StaticList {
|
||||
*
|
||||
* @uses product
|
||||
*/
|
||||
public static function form($name,$product='',$addblank=FALSE) {
|
||||
public static function form($name,$product='',$default='',$addblank=FALSE) {
|
||||
if (empty($product))
|
||||
throw new Kohana_Exception('Product is a required field for :method',array(':method'=>__METHOD__));
|
||||
|
||||
@@ -50,7 +50,7 @@ class StaticList_RecurSchedule extends StaticList {
|
||||
$x[$term] .= sprintf(' + %s %s',Currency::display($price['price_setup']),_('Setup'));
|
||||
}
|
||||
|
||||
return Form::select($name,$x,$product->price_recurr_default);
|
||||
return Form::select($name,$x,$default);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user