Fixed add recurring causing it convert POST VAR from to string to INT

This commit is contained in:
johnny@pittpc.com
2021-02-27 13:09:57 -05:00
parent 78c13f6954
commit afe3e4a82b

View File

@@ -2247,7 +2247,7 @@ if(isset($_POST['add_recurring'])){
$frequency = strip_tags(mysqli_real_escape_string($mysqli,$_POST['frequency']));
$start_date = strip_tags(mysqli_real_escape_string($mysqli,$_POST['start_date']));
$category = intval($_POST['category']);
$currency_code = intval($_POST['currency_code']);
$currency_code = strip_tags(mysqli_real_escape_string($mysqli,$_POST['currency_code']));
$scope = strip_tags(mysqli_real_escape_string($mysqli,$_POST['scope']));
//Get the last Recurring Number and add 1 for the new Recurring number