Fix issues found during testing. #780

This commit is contained in:
Korina Cordero 2024-01-17 15:31:20 +08:00
parent a83fecf224
commit ee033ddd55
2 changed files with 3 additions and 3 deletions

View file

@ -104,10 +104,11 @@ class ItemPricingController extends Controller
$item_prices = $price_tier->getItemPrices();
// clear the tier's item prices
// clear the tier's item prices for the specific item type
foreach ($item_prices as $ip)
{
$em->remove($ip);
if ($ip->getItemType() == $item_type)
$em->remove($ip);
}
// update the tier's item prices

View file

@ -118,7 +118,6 @@ function init_item_type_dropdown() {
}
function load_prices(price_tier_id, item_type_id) {
console.log('loading prices');
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
// process response