diff --git a/src/ui/page/report-bug.go b/src/ui/page/report-bug.go index b5c9452bc9261055b8166549eb52c1ac67d26087..048411d7f9edc1e34b39e2acb71d9db9f7d4fcd0 100644 --- a/src/ui/page/report-bug.go +++ b/src/ui/page/report-bug.go @@ -33,13 +33,13 @@ func InitReportBugPage(resultDir string, caseId string) error { // title left := x right := left + widget.TextWidthFull - 5 - titleInput := widget.NewTextWidget("titleInput", left, y, widget.TextWidthFull-5, bug.Title) + titleInput := widget.NewTextWidget("titleInput", left, y, widget.TextWidthFull-5, "bug.Title") ui.ViewMap["reportBug"] = append(ui.ViewMap["reportBug"], titleInput.Name()) // steps left = right + ui.Space stepsWidth := w - left - 3 - stepsInput := widget.NewTextareaWidget("stepsInput", left, y, stepsWidth, h-constant.CmdViewHeight-2, bug.Steps) + stepsInput := widget.NewTextareaWidget("stepsInput", left, y, stepsWidth, h-constant.CmdViewHeight-2, "bug.Steps") stepsInput.Title = i118Utils.I118Prt.Sprintf("steps") ui.ViewMap["reportBug"] = append(ui.ViewMap["reportBug"], stepsInput.Name())