From 37642cedaa0d646709f638babe523aafb0c4e205 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 31 Oct 2024 11:39:03 +0200 Subject: [PATCH] Fixes platform editing --- app/pages/config.php | 7 ++++++- app/templates/config-platform-edit.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/pages/config.php b/app/pages/config.php index 16cc0b8..3a59e0f 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -121,7 +121,12 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { 'jitsi_url' => $_POST['jitsi_url'], 'jilo_database' => $_POST['jilo_database'], ]; - $platformObject->editPlatform($platform, $updatedPlatform); + $result = $platformObject->editPlatform($platform, $updatedPlatform); + if ($result === true) { + $_SESSION['notice'] = "Platform \"{$_REQUEST['name']}\" edited."; + } else { + $_SESSION['error'] = "Editing the platform failed. Error: $result"; + } } diff --git a/app/templates/config-platform-edit.php b/app/templates/config-platform-edit.php index 5e5651f..e15f72e 100644 --- a/app/templates/config-platform-edit.php +++ b/app/templates/config-platform-edit.php @@ -3,7 +3,7 @@

Jilo configuration for Jitsi platform "" :: edit

-
+ $value) { if ($key === 'id') continue;