mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
modify cmd_edit bug
This commit is contained in:
@@ -550,7 +550,7 @@ def cmd_edit(request):
|
||||
cmd_group_id = request.POST.get('cmd_group_id')
|
||||
name = request.POST.get('name')
|
||||
dept_id = request.POST.get('dept_id')
|
||||
cmd = ','.join(request.POST.get('cmd').split())
|
||||
cmd = ','.join(request.POST.get('cmd').split('\n'))
|
||||
comment = request.POST.get('comment')
|
||||
cmd_group = CmdGroup.objects.filter(id=cmd_group_id)
|
||||
|
||||
|
Reference in New Issue
Block a user