That looks like a decent patch to get you going, but ultimately I believe that the base /admin/includes/modules/update_product.php needs to be updated to ensure that any integer-type fields should be...