lots of functionality
This commit is contained in:
@@ -394,7 +394,7 @@ func (d *AssetEditDialog) initData() {
|
||||
}
|
||||
|
||||
// Comments category
|
||||
d.assetCommentsArea.SetText("", true)
|
||||
d.assetCommentsArea.SetText(d.asset.Comments, true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -773,7 +773,7 @@ func (d *AssetEditDialog) EditAssetOptions() types.CreateAssetRequest {
|
||||
Manufacturer: d.assetManufacturerField.GetText(),
|
||||
ModelName: d.assetModelField.GetText(),
|
||||
Price: price,
|
||||
Comments: d.assetCommentsArea.GetText(),
|
||||
Comments: strings.TrimSpace(d.assetCommentsArea.GetText()),
|
||||
ShelfLocationID: shelfID,
|
||||
CategoryID: categoryID,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user