forked from github/plane
fix: transfer issues endpoint (#620)
This commit is contained in:
parent
1558f51c23
commit
1d7b65ad83
@ -740,7 +740,10 @@ class TransferCycleIssueEndpoint(BaseAPIView):
|
||||
workspace__slug=slug, project_id=project_id, pk=new_cycle_id
|
||||
)
|
||||
|
||||
if new_cycle.end_date < timezone.now().date():
|
||||
if (
|
||||
new_cycle.end_date is not None
|
||||
and new_cycle.end_date < timezone.now().date()
|
||||
):
|
||||
return Response(
|
||||
{
|
||||
"error": "The cycle where the issues are transferred is already completed"
|
||||
|
Loading…
Reference in New Issue
Block a user