mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-18 13:28:32 -04:00
Remove prepare_decimal and filter_var
This commit is contained in:
@@ -207,7 +207,7 @@ class Items extends Secure_Controller
|
||||
*/
|
||||
public function getSuggestLowSell(): void
|
||||
{
|
||||
$suggestions = $this->item->get_low_sell_suggestions($this->request->getPostGet('name'));
|
||||
$suggestions = $this->item->get_low_sell_suggestions($this->request->getPo1stGet('name'));
|
||||
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
@@ -1446,7 +1446,7 @@ class Items extends Secure_Controller
|
||||
$attributeId = $attributeValue;
|
||||
break;
|
||||
case DECIMAL:
|
||||
$attributeValue = prepare_decimal($attributeValue);
|
||||
$attributeValue = parse_decimals($attributeValue);
|
||||
//Fall through to save the attribute value
|
||||
default:
|
||||
$attributeId = $this->attribute->saveAttributeValue($attributeValue, $definitionId, $itemId, $attributeIds[$definitionId], $definitionType);
|
||||
|
||||
Reference in New Issue
Block a user