From e559e84a69562522402f9cab9473a83788027f16 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 29 Oct 2026 06:59:06 +0100 Subject: [PATCH] Show the authoritative stadium name in the own club profile (by Codex) --- docs/new_ui/integration/ENGINE_ENTRY.md | 7 +++++++ src/modern/ui/engine_reports.inc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/new_ui/integration/ENGINE_ENTRY.md b/docs/new_ui/integration/ENGINE_ENTRY.md index 5cb9d5c..1451cc0 100644 --- a/docs/new_ui/integration/ENGINE_ENTRY.md +++ b/docs/new_ui/integration/ENGINE_ENTRY.md @@ -404,3 +404,10 @@ Hauptmenü-Laden nach vollem Prozessneustart. Beide Übergänge öffnen danach d native Eintrittswidget. Beim Restore werden gespeicherte Daten exakt verglichen; nur tatsächlich neu ausgestellte Camp-Angebotskennungen/Scope/Revisionsbindungen werden separat gegen den neuen aktuellen Kontext geprüft. Anstoß bleibt gesperrt. + +Das eigene Vereinsprofil bevorzugt beim Stadionnamen die tatsächlich gelieferte +Angabe des Session-Stadionreads (#23). Das gilt ausschließlich bei gleicher +stabiler Team-ID. Fehlende Stadionzuordnungen fremder Vereine werden weiterhin +als unbekannt dargestellt; es gibt keine Namens-/Reihenfolgeraten aus dem Katalog. +Ein nativer Vorher-/Nachher-Gegenfall mit derselben OBS-Datei und fünf gezielte +Bericht-/Layouttests prüfen die Anzeige. diff --git a/src/modern/ui/engine_reports.inc b/src/modern/ui/engine_reports.inc index 6425c80..26944e8 100644 --- a/src/modern/ui/engine_reports.inc +++ b/src/modern/ui/engine_reports.inc @@ -170,7 +170,7 @@ std::string App::engine_reports_detail() { if(!stadium)for(const auto &candidate:world_->rows("stadiums"))if(candidate.value("owner",Json())==report_detail_club_){stadium=&candidate;break;} if(stadium)stadium_name=world_->name(*stadium); const auto &live_stadium=engine_data_.at("stadium"); - if(live_stadium.value("messageType","")=="snapshot"&&live_stadium.at("data").at("teamId")==report_detail_club_) {int64_t sum=0;for(const auto &block:live_stadium.at("data").at("blocks"))sum+=block.at("places").get();places=number(sum);} + if(live_stadium.value("messageType","")=="snapshot"&&live_stadium.at("data").at("teamId")==report_detail_club_) {if(live_stadium.at("data").value("name",Json()).is_string())stadium_name=live_stadium.at("data").at("name").get();int64_t sum=0;for(const auto &block:live_stadium.at("data").at("blocks"))sum+=block.at("places").get();places=number(sum);} body="
"+crest(world_->find("clubs",report_detail_club_),192)+"

Vereinsprofil

"+report_detail_fields({{"Stadion",stadium_name},{"Plätze",places},{"Stärke",strength},{"Manager",manager}},72); bool has_squad=true;if(menu_=="other")for(const auto &m:engine_other_value_.at("matches")){if(m.at("home")==report_detail_club_)has_squad=m.at("homeHasSquad");if(m.at("away")==report_detail_club_)has_squad=m.at("awayHasSquad");} actions=btn("report-club-roster","Spieler","report-detail-action",std::string("id=\"report-detail-roster\" ")+(has_squad?"":"disabled"))+close;