diff --git a/CHANGELOG.md b/CHANGELOG.md index d6c1b7ee..10702d30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ All notable changes to ITFlow will be documented in this file. - Moved cron/cli scripts to scripts subfolder - Old scripts remain in the root for now, but please update your cron configurations! - Bugfix: Ticket edit modal not showing multi-client/no-client projects - Bugfix: Asset interface losing DHCP setting -- Bugfix: Editing / creating recurring expensives results in error 500 due to incorrect var name +- Bugfix: Editing / creating recurring expenses results in error 500 due to incorrect var name +- Stripe online payment setup now prompts you to set the income/expense account ## 24.12 diff --git a/admin_settings_online_payment.php b/admin_settings_online_payment.php index 01ea1cc8..edd3efa4 100644 --- a/admin_settings_online_payment.php +++ b/admin_settings_online_payment.php @@ -25,7 +25,7 @@ require_once "inc_all_admin.php";
">
- +
@@ -35,7 +35,7 @@ require_once "inc_all_admin.php";
- +
@@ -45,7 +45,7 @@ require_once "inc_all_admin.php";
- +
diff --git a/post/admin/admin_settings_online_payment.php b/post/admin/admin_settings_online_payment.php index 200330c0..53df9c9b 100644 --- a/post/admin/admin_settings_online_payment.php +++ b/post/admin/admin_settings_online_payment.php @@ -18,7 +18,13 @@ if (isset($_POST['edit_online_payment_settings'])) { // Logging logAction("Settings", "Edit", "$session_name edited online payment settings"); - $_SESSION['alert_message'] = "Online Payment Settings updated"; + + if ($config_stripe_account == 0) { + $_SESSION['alert_type'] = "error"; + $_SESSION['alert_message'] = "Stripe payment account must be specified!"; + } else { + $_SESSION['alert_message'] = "Online Payment Settings updated"; + } header("Location: " . $_SERVER["HTTP_REFERER"]); }