mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 11:57:34 +00:00
[lib setting] basic info: remove 'description'
This commit is contained in:
@@ -2115,12 +2115,11 @@ def ajax_repo_change_basic_info(request, repo_id):
|
||||
}), status=400, content_type=content_type)
|
||||
|
||||
repo_name = form.cleaned_data['repo_name']
|
||||
repo_desc = form.cleaned_data['repo_desc']
|
||||
days = form.cleaned_data['days']
|
||||
|
||||
# Edit library info (name, descryption).
|
||||
if repo.name != repo_name or repo.desc != repo_desc:
|
||||
if not edit_repo(repo_id, repo_name, repo_desc, username):
|
||||
if repo.name != repo_name:
|
||||
if not edit_repo(repo_id, repo_name, '', username): # set desc as ''
|
||||
err_msg = _(u'Failed to edit library information.')
|
||||
return HttpResponse(json.dumps({'error': err_msg}),
|
||||
status=500, content_type=content_type)
|
||||
|
Reference in New Issue
Block a user