Ignore:
Timestamp:
Feb 23, 2010, 10:19:44 PM (15 years ago)
Author:
gav
Message:

Fix a bug in inventory movement when no task present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryMovementDetailedController.groovy

    r298 r406  
    5454        if(!result.error) {
    5555            flash.message = "InventoryMovement ${params.id} deleted"
    56             redirect(controller:"taskDetailed", action:"show", id:result.taskId)
     56            if(result.taskId)
     57                redirect(controller:"taskDetailed", action:"show", id:result.taskId)
     58            redirect(controller:"inventoryItemDetailed", action:"show", id:result.inventoryItemInstance?.id)
    5759        }
    5860        else {
Note: See TracChangeset for help on using the changeset viewer.