Skip to content

Commit 4fca2e4

Browse files
committed
show error message when item type does not match protocol
1 parent edb7bba commit 4fca2e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pegr/grails-app/controllers/pegr/ProtocolInstanceBagController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class ProtocolInstanceBagController {
279279
} else {
280280
def item = Item.findByBarcode(barcode)
281281
if (item && item.type != itemType) {
282-
flash.message = "The item with barcode ${barcode} has type ${item.type}, which does not match the input type ${itemType}!"
282+
flash.message = "The item with barcode ${barcode} has type ${item.type.name}, which does not match the input type ${itemType.name}!"
283283
redirect(action: "showInstance", id: instanceId)
284284
return
285285
}

0 commit comments

Comments
 (0)