mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-01 19:47:11 +00:00
More stuffs. Too lazy to explain.
This commit is contained in:
@@ -79,10 +79,12 @@ class Piggybank implements CUD, CommonDatabaseCalls, PiggybankInterface
|
||||
$model->reminder_skip = isset($data['reminder_skip']) ? $data['reminder_skip'] : 0;
|
||||
$model->order = isset($data['order']) ? $data['order'] : 0;
|
||||
$model->remind_me = isset($data['remind_me']) ? intval($data['remind_me']) : 0;
|
||||
$model->reminder = isset($data['reminder']) ? $data['reminder'] : 'month';
|
||||
if (!$model->validate()) {
|
||||
var_dump($model->errors());
|
||||
exit();
|
||||
}
|
||||
|
||||
$model->save();
|
||||
|
||||
return true;
|
||||
|
||||
@@ -111,6 +111,9 @@ class Form
|
||||
$options['id'] = 'ffInput_' . $name;
|
||||
$options['autocomplete'] = 'off';
|
||||
$label = self::label($name, $options);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Make label and placeholder look nice.
|
||||
*/
|
||||
|
||||
@@ -30,9 +30,11 @@ class Date
|
||||
case 'daily':
|
||||
$date->addDays($add);
|
||||
break;
|
||||
case 'week':
|
||||
case 'weekly':
|
||||
$date->addWeeks($add);
|
||||
break;
|
||||
case 'month':
|
||||
case 'monthly':
|
||||
$date->addMonths($add);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user