mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
fix(Dashboard widget Url): adds validation method for both input fields and fixes confirm delete dialog
This commit is contained in:
@@ -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');
|
||||
|
||||
+31
-8
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user