Fix item row refresh (#68)

This commit is contained in:
jekkos
2018-09-28 20:26:52 +02:00
committed by jekkos
parent 74f31dbaf9
commit 43e3400468
2 changed files with 1 additions and 2 deletions

View File

@@ -383,7 +383,7 @@ class Item extends CI_Model
$this->db->from('items');
$this->db->join('suppliers', 'suppliers.person_id = items.supplier_id', 'left');
$this->db->join('item_quantities', 'item_quantities.item_id = items.item_id', 'left');
$this->db->join('attribute_links', 'attribute_links.item_id = items.item_id', 'left');
$this->db->join('attribute_links', 'attribute_links.item_id = items.item_id AND sale_id IS NULL AND receiving_id IS NULL', 'left');
$this->db->join('attribute_values', 'attribute_links.attribute_id = attribute_values.attribute_id', 'left');
$this->db->where('location_id', $location_id);
$this->db->where_in('items.item_id', $item_ids);

View File

@@ -58,7 +58,6 @@ foreach($definition_values as $definition_id => $definition_value)
var enable_delete = function() {
$('.remove_attribute_btn').click(function() {
$(this).parents('.form-group').remove();
refresh();
});
};