Fix bulk update with bootstrap-tables (#507)

This commit is contained in:
jekkos
2016-04-28 08:21:30 +02:00
parent 9caed90aee
commit c568c08595

View File

@@ -237,7 +237,7 @@ class Item extends CI_Model
*/
public function update_multiple($item_data, $item_ids)
{
$this->db->where_in('item_id', $item_ids);
$this->db->where_in('item_id', explode(',', $item_ids[0]));
return $this->db->update('items', $item_data);
}