Skip to content

The edit form keeps old values after submit #213

@sgmv

Description

@sgmv

The edit form keeps the old data after sending an update. But it should be flushed. All possible fields should be empty.

The current situation affects it like you have a one update time for all possible statuses:

{
	"0": {
		"id": 643,
		"title": "test description and updates",
		"description": "the description for test",
		"impact": 1,
		"components": [
			154
		],
		"start_date": "2025-07-28T12:40:00Z",
		"end_date": "2025-07-28T13:07:27.303Z",
		"system": false,
		"type": "incident",
		"updates": [
			{
				"status": "analysing",
				"text": "change status to Analysing",
				"timestamp": "2025-07-28T13:07:27.303Z"
			},
			{
				"status": "detected",
				"text": "The incident is detected.",
				"timestamp": "2025-07-28T12:48:09.886442Z"
			},
			{
				"status": "fixing",
				"text": "change status to Fixing",
				"timestamp": "2025-07-28T13:07:27.303Z"
			},
			{
				"status": "observing",
				"text": "change status to Observing",
				"timestamp": "2025-07-28T13:07:27.303Z"
			},
			{
				"status": "resolved",
				"text": "change status to Resolved",
				"timestamp": "2025-07-28T13:07:27.303Z"
			}
		]
	}
}
Image

How to reproduce it: edit an event, edit it and submit. Then push the edit button again, and you will have predefined values.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions