- bug TRA-68 solved - bug in javascript code did not pass changed json content.

This commit is contained in:
Josako
2025-08-21 08:30:14 +02:00
parent 53283b6687
commit da61f5f9ec
3 changed files with 59 additions and 98 deletions

View File

@@ -870,8 +870,11 @@ def edit_asset(asset_id):
try:
# Haal de bewerkte JSON data op uit het formulier
json_data = request.form.get('json_content')
current_app.logger.debug(f"Raw JSON data received for asset {asset_id}: {json_data[:200] if json_data else 'None'}...")
current_app.logger.debug(f"JSON data length: {len(json_data) if json_data else 0}")
if not json_data:
current_app.logger.error(f"No JSON data received for asset {asset_id}")
flash('Geen JSON data ontvangen', 'error')
return redirect(prefixed_url_for('interaction_bp.edit_asset', asset_id=asset_id))