Remove prepare_decimal and filter_var

This commit is contained in:
jekkos
2025-01-10 19:17:17 +01:00
committed by jekkos
parent a87b6eebb2
commit c81c546286
12 changed files with 48 additions and 99 deletions

View File

@@ -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);