Commits

Jesse Terry committed 01c1874

Fix for inventory item to save with user id

  • Participants
  • Parent commits f971cdf

Comments (0)

Files changed (1)

application/modules_core/inventory/models/mdl_inventory.php

 	}
 	
 	public function save($db_array, $id = NULL, $initial_stock_quantity = NULL) {
+
+		if (!$id) {
+
+			$db_array['inventory_user_id'] = $this->session->userdata('user_id');
+
+		}
 		
 		parent::save($db_array, $id);