mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 15:17:17 +00:00
Recurring Expense: Fix edit not keeping client
This commit is contained in:
@@ -23,6 +23,10 @@ if (isset($_POST['create_recurring_expense'])) {
|
||||
$description = escapeSql($_POST['description']);
|
||||
$reference = escapeSql($_POST['reference']);
|
||||
|
||||
if ($client_id) {
|
||||
enforceClientAccess();
|
||||
}
|
||||
|
||||
$year = date('Y');
|
||||
if (strtotime("$year-$month-$day") < time()) {
|
||||
$year++;
|
||||
@@ -59,6 +63,10 @@ if (isset($_POST['edit_recurring_expense'])) {
|
||||
$description = escapeSql($_POST['description']);
|
||||
$reference = escapeSql($_POST['reference']);
|
||||
|
||||
if ($client_id) {
|
||||
enforceClientAccess();
|
||||
}
|
||||
|
||||
$year = date('Y');
|
||||
if (strtotime("$year-$month-$day") < time()) {
|
||||
$year++;
|
||||
|
||||
Reference in New Issue
Block a user