Index: /trunk/grails-app/controllers/InventoryMovementDetailedController.groovy
===================================================================
--- /trunk/grails-app/controllers/InventoryMovementDetailedController.groovy	(revision 441)
+++ /trunk/grails-app/controllers/InventoryMovementDetailedController.groovy	(revision 442)
@@ -33,9 +33,14 @@
     @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
     def listInventoryMovements = {
-        def inventoryItemInstance = InventoryItem.get(params.inventoryItem.id)
+        def inventoryItemInstance
+        if(params.id)
+            inventoryItemInstance = InventoryItem.get(params.id)
+        else if(params.inventoryItem?.id)
+            inventoryItemInstance = InventoryItem.get(params.inventoryItem.id)
 
         if(!inventoryItemInstance) {
             flash.message = "Inventory item not found with id ${params.id}"
             redirect(controller:'inventoryItemDetailed', action: 'search')
+            return
         }
 
Index: /trunk/grails-app/views/inventoryMovementDetailed/listInventoryMovements.gsp
===================================================================
--- /trunk/grails-app/views/inventoryMovementDetailed/listInventoryMovements.gsp	(revision 441)
+++ /trunk/grails-app/views/inventoryMovementDetailed/listInventoryMovements.gsp	(revision 442)
@@ -26,11 +26,11 @@
                         <tr>
                         
-                   	        <g:sortableColumn action="listInventoryMovements" property="quantity" title="Quantity" />
+                   	        <g:sortableColumn action="listInventoryMovements" property="quantity" title="Quantity" params="[id: inventoryItemInstance.id]"/>
                         
-                   	        <g:sortableColumn action="listInventoryMovements"  property="inventoryMovementType" title="Movement Type" />
+                   	        <g:sortableColumn action="listInventoryMovements"  property="inventoryMovementType" title="Movement Type" params="[id: inventoryItemInstance.id]" />
                         
-                            <g:sortableColumn action="listInventoryMovements"  property="date" title="Date" />
+                            <g:sortableColumn action="listInventoryMovements"  property="date" title="Date" params="[id: inventoryItemInstance.id]" />
                         
-                   	        <g:sortableColumn action="listInventoryMovements"  property="person" title="Person" />
+                   	        <g:sortableColumn action="listInventoryMovements"  property="person" title="Person" params="[id: inventoryItemInstance.id]" />
 
                             <th></th>
@@ -62,5 +62,5 @@
             </div>
             <div class="paginateButtons">
-                <g:paginate action="listInventoryMovements" id="${inventoryItemInstance?.id}" total="${inventoryMovementListTotal}" />
+                <g:paginate action="listInventoryMovements" id="${inventoryItemInstance.id}" total="${inventoryMovementListTotal}" />
             </div>
         </div>
