fix(schematic): Busbar-Farbgebung fuer unterste Phasenschiene
fedPhases-Sammlung scannte nur Terminals auf der Busbar-Seite (top/bottom). Wenn Phasen (z.B. vom FI4P) auf der gegenueberliegenden Seite ankamen, blieb fedPhases leer und die Busbar erhielt keine Farbe. Fix: Positionsfilter nur in der Verteilung behalten, nicht beim Sammeln. Gilt fuer JS (kundenkarte.js Z. 5669) und PHP-Port (wiring_diagram.lib.php). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
785bb9f66f
commit
7f15645ecd
2 changed files with 1 additions and 2 deletions
|
|
@ -5666,7 +5666,7 @@
|
|||
if (!(eqPosTE < railEnd + 1 && railStart < eqPosTE + eqWidthTE)) return;
|
||||
|
||||
var terminals = self.getTerminals(eq);
|
||||
terminals.filter(function(t) { return t.pos === targetPos; }).forEach(function(term) {
|
||||
terminals.forEach(function(term) {
|
||||
var phase = (self._terminalPhaseMap[eq.id] || {})[term.id];
|
||||
if (phase) {
|
||||
fedPhases[phase] = true;
|
||||
|
|
|
|||
1
lib/wiring_diagram.lib.php
Normal file → Executable file
1
lib/wiring_diagram.lib.php
Normal file → Executable file
|
|
@ -401,7 +401,6 @@ class WiringDiagramAnalyzer
|
|||
|
||||
$terminals = getEquipmentTerminals($eq);
|
||||
foreach ($terminals as $term) {
|
||||
if (($term['pos'] ?? '') !== $targetPos) continue;
|
||||
$termId = $term['id'] ?? '';
|
||||
$phase = $this->terminalPhaseMap[$eq->id][$termId] ?? null;
|
||||
if ($phase) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue