diff --git a/ajax.php b/ajax.php index 065e7110..98003749 100644 --- a/ajax.php +++ b/ajax.php @@ -332,8 +332,9 @@ if (isset($_GET['quote_get_json_details'])) { $category_sql = mysqli_query( $mysqli, "SELECT category_id, category_name FROM categories - WHERE category_type = 'Income' AND (category_archived_at > '$quote_created_at' OR category_archived_at IS NULL) - ORDER BY category_name"); + WHERE category_type = 'Income' AND (category_archived_at > '$quote_created_at' OR category_archived_at IS NULL) + ORDER BY category_name" + ); while ($row = mysqli_fetch_array($category_sql)) { $response['categories'][] = $row; diff --git a/js/quote_edit_modal.js b/js/quote_edit_modal.js index 767764a1..9e933d75 100644 --- a/js/quote_edit_modal.js +++ b/js/quote_edit_modal.js @@ -27,7 +27,7 @@ function populateQuoteEditModal(quote_id) { // Clear Category dropdown var i, L = categoryDropdown.options.length -1; - for(i = L; i >= 0; i--) { + for (i = L; i >= 0; i--) { categoryDropdown.remove(i); } categoryDropdown[categoryDropdown.length] = new Option('- Category -', '0');