fix(Dashboard widget Url): adds validation method for both input fields and fixes confirm delete dialog

This commit is contained in:
SimonGschnell
2024-11-05 11:32:02 +01:00
parent a9fe52d3c6
commit 37dffbba19
4 changed files with 109 additions and 36 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ require_once('dbupdate_3.4/25999_cis4_cms.php');
require_once('dbupdate_3.4/36530_bis_internationsalisierung_codextabelle_neuerungen.php');
require_once('dbupdate_3.4/34543_ux_template.php');
require_once('dbupdate_3.4/17513_Entwicklungsteam.php');
require_once('dbupdate_3.4/41134_bookmark_dashboardWidget.php');
require_once('dbupdate_3.4/41134_C4_bookmark_dashboardWidget.php');
require_once('dbupdate_3.4/28575_softwarebereitstellung.php');
require_once('dbupdate_3.4/41150_oe-pfad_db_view.php');
require_once('dbupdate_3.4/44031_stv_favorites.php');
@@ -2,8 +2,11 @@
if (!$result = @$db->db_query("SELECT to_regclass('dashboard.tbl_bookmark')"))
{
$qry = "BEGIN TRANSACTION;
if (!$db->db_query("BEGIN;"))
{
echo '<strong>wasnt able to start transaction for 41134_C4_bookmark_dashboardWidget: ' . $db->db_last_error() . '</strong><br>';
}
$qry = "
CREATE TABLE IF NOT EXISTS dashboard.tbl_bookmark(
bookmark_id BIGINT PRIMARY KEY,
uid VARCHAR(255) NOT NULL,
@@ -33,12 +36,32 @@ if (!$result = @$db->db_query("SELECT to_regclass('dashboard.tbl_bookmark')"))
GRANT SELECT, INSERT, UPDATE, DELETE ON dashboard.tbl_bookmark TO web;
GRANT SELECT, UPDATE ON dashboard.tbl_bookmark_sequence TO vilesci;
GRANT SELECT, UPDATE ON dashboard.tbl_bookmark_sequence TO web;
COMMIT TRANSACTION;";
";
if (!$db->db_query($qry))
echo '<strong>error occurred during tbl_bookmark creation: ' . $db->db_last_error() . '</strong><br>';
else
echo '<br>dashboard.tbl_bookmark and dashboard.tbl_bookmark_sequence was created';
{
// Rollback
if (!$db->db_query("ROLLBACK;"))
{
echo '<strong>wasnt able to rollback: ' . $db->db_last_error() . '</strong><br>';
}
else
{
echo '<strong>ROLLED BACK 41134_C4_bookmark_dashboardWidget</strong><br>';
}
echo '<strong>error occurred during tbl_bookmark creation: ' . $db->db_last_error() . '</strong><br>';
}
else
{
// Commit
if (!$db->db_query("COMMIT;"))
{
echo '<strong>wasnt able to commit: ' . $db->db_last_error() . '</strong><br>';
}
else
{
echo '<strong>COMMITED 41134_C4_bookmark_dashboardWidget</strong><br>';
}
echo '<br>dashboard.tbl_bookmark and dashboard.tbl_bookmark_sequence was created';
}
}
+20
View File
@@ -31524,6 +31524,26 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'bookmark',
'phrase' => 'invalidTitel',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ungültiger Titel',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Invalid title',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'global',