API: changed date-format, camelCase instead of snake_case, null values, update and create for customer and project (#718)
This commit is contained in:
@@ -222,7 +222,9 @@ class ActivityController extends AbstractController
|
||||
|
||||
return $this->createForm(ActivityEditForm::class, $activity, [
|
||||
'action' => $url,
|
||||
'method' => 'POST'
|
||||
'method' => 'POST',
|
||||
'create_more' => true,
|
||||
'customer' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,14 +214,11 @@ class ProjectController extends AbstractController
|
||||
$currency = $project->getCustomer()->getCurrency();
|
||||
}
|
||||
|
||||
return $this->createForm(
|
||||
ProjectEditForm::class,
|
||||
$project,
|
||||
[
|
||||
'action' => $url,
|
||||
'method' => 'POST',
|
||||
'currency' => $currency,
|
||||
]
|
||||
);
|
||||
return $this->createForm(ProjectEditForm::class, $project, [
|
||||
'action' => $url,
|
||||
'method' => 'POST',
|
||||
'currency' => $currency,
|
||||
'create_more' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,6 +267,7 @@ class TimesheetController extends AbstractController
|
||||
return $this->createForm(TimesheetEditForm::class, $entry, [
|
||||
'action' => $this->generateUrl('timesheet_create', ['origin' => $redirectRoute]),
|
||||
'include_rate' => $this->isGranted('edit_rate', $entry),
|
||||
'customer' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -286,6 +287,7 @@ class TimesheetController extends AbstractController
|
||||
]),
|
||||
'include_rate' => $this->isGranted('edit_rate', $entry),
|
||||
'include_exported' => $this->isGranted('edit_export', $entry),
|
||||
'customer' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -189,6 +189,7 @@ class TimesheetTeamController extends AbstractController
|
||||
'action' => $this->generateUrl('admin_timesheet_create'),
|
||||
'include_rate' => $this->isGranted('edit_rate', $entry),
|
||||
'include_user' => true,
|
||||
'customer' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -208,6 +209,7 @@ class TimesheetTeamController extends AbstractController
|
||||
'include_rate' => $this->isGranted('edit_rate', $entry),
|
||||
'include_exported' => $this->isGranted('edit_export', $entry),
|
||||
'include_user' => true,
|
||||
'customer' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user