Skip to content

Macro editor : editing a train with a power restriction creates an error #18048

Description

@maelysLeratRosso

What happened?

I create a train with a power restriction

timetable - 2026-08-07T152704.226.json

And I try to edit it in NGE (changing the category here)

I get this error

Image

What did you expect to happen?

I expect no error (it's ok if for now it empties the power restrictions when editing from NGE, @Synar will fix it in another PR). Just expect to be able to edit here (the same as it currently works for a train which has margins)

How can we reproduce it (as minimally and precisely as possible)?

As above

On which environments the bug occurs?

Dev (SNCF)

On which browser the bug occurs?

Google Chrome

OSRD version (top right corner Account button > Informations)

1b10d62

Metadata

Metadata

Assignees

Labels

area:frontWork on Standard OSRD Interface modulescomponent:ngeMacroscopic mode of Operational Studies modulekind:bugSomething isn't workingmodule:operational-studiesMulti-train simulation with structured studies managementseverity:majorMajor severity bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions