This commit is contained in:
+2
-2
@@ -5484,7 +5484,7 @@ def upload_item():
|
||||
fs = get_gridfs()
|
||||
|
||||
if cfg.MODULES.is_enabled('library') and sanitize_form_value(request.form.get('item_type_input', '')) != "other":
|
||||
success_redirect_endpoint = 'library'
|
||||
success_redirect_endpoint = 'library_view'
|
||||
else:
|
||||
success_redirect_endpoint = 'home_admin'
|
||||
|
||||
@@ -5830,7 +5830,7 @@ def upload_item():
|
||||
success_msg = f'Element wurde erfolgreich hinzugefügt ({len(created_item_ids)} erstellt)'
|
||||
fs = get_gridfs() # Deine GridFS Verbindung
|
||||
|
||||
cleanup_orphaned_images(fs, dry_run=True)
|
||||
it.cleanup_orphaned_images(fs, dry_run=True)
|
||||
if upload_mode == 'library':
|
||||
try:
|
||||
_append_audit_event_standalone(
|
||||
|
||||
Reference in New Issue
Block a user