You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a building or technology is set to building_show = 0 / tech_show = 0, it appears in spy reports anyway, but only the level of the building/tech without the name:
public function getBuilding(int $buildingId): ?Building
{
$data = $this->createQueryBuilder()
->select('b.*')
->from('buildings', 'b')
->andWhere('b.building_id = :building_id')
->andWhere('b.building_show=1')
->setParameter('building_id', $buildingId)
->fetchAssociative();
return $data !== false ? new Building($data) : null;
}
For me, it looks like the macro is showing the formatNumber(count) regardless if names[id] is empty or not. Easiest fix would probably be to just don't write hidden buildings and technologies to the database.
The text was updated successfully, but these errors were encountered:
If a building or technology is set to building_show = 0 / tech_show = 0, it appears in spy reports anyway, but only the level of the building/tech without the name:
macros.html.twig
BuildingDataRepository.php
For me, it looks like the macro is showing the formatNumber(count) regardless if names[id] is empty or not. Easiest fix would probably be to just don't write hidden buildings and technologies to the database.
The text was updated successfully, but these errors were encountered: