mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-23 20:39:26 +00:00
perf: 工单错误提示优化
This commit is contained in:
@@ -160,7 +160,7 @@ class TicketFlowApproveSerializer(serializers.ModelSerializer):
|
||||
def validate(self, attrs):
|
||||
if attrs['strategy'] == TicketApprovalStrategy.custom_user and not attrs.get('assignees'):
|
||||
error = _('Please select the Assignees')
|
||||
raise serializers.ValidationError(error)
|
||||
raise serializers.ValidationError({'assignees': error})
|
||||
return super().validate(attrs)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user