mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-14 02:33:56 -04:00
Fix attribute selection for update (#68)
This commit is contained in:
@@ -404,7 +404,8 @@ class Items extends Secure_Controller
|
||||
$values = &$data['definition_values'][$definition_id];
|
||||
$values['attribute_id'] = $attribute_id;
|
||||
$values['attribute_value'] = $attribute_value;
|
||||
|
||||
$values['selected_value'] = '';
|
||||
|
||||
if ($definition_value['definition_type'] == DROPDOWN)
|
||||
{
|
||||
$values['values'] = $this->Attribute->get_definition_values($definition_id);
|
||||
@@ -416,10 +417,6 @@ class Items extends Secure_Controller
|
||||
{
|
||||
$values['selected_value'] = $definition_ids[$definition_id];
|
||||
}
|
||||
else
|
||||
{
|
||||
$values['selected_value'] = '';
|
||||
}
|
||||
|
||||
unset($data['definition_names'][$definition_id]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user