Incorporated changes for release 1.4.4

This commit is contained in:
2026-02-24 21:06:26 -05:00
parent 925332147a
commit 1d26b8bfed
8 changed files with 77 additions and 3 deletions

View File

@@ -180,3 +180,10 @@ Changelog
Open Writeups page entirely. The writeups page now shows all Open Writeups page entirely. The writeups page now shows all
writeups for the selected date range, or today if no dates are writeups for the selected date range, or today if no dates are
specified. specified.
1.4.4 - 2025-12-10
- Fixed bug in writeupdetail.php that emerged with installation on a
system using MariaDB-10.11.14. A fatal error occurred when
trying to insert a null value into the action_reason field of
the writeups table (you left the action reason dropdown blank).
Previous versions just left it as is without complaint.

View File

@@ -26,7 +26,7 @@ function dberrmsg($dbname) {
</head> </head>
<body> <body>
Could not connect to the $dbname database. Please ensure the MySQL server is running. If this is Could not connect to the $dbname database. Please ensure the MySQL server is running. If this is
the first time you have used OpenMTS, please consult the INSTALL file included in the distribution. the first time you have used OpenDRS, please consult the INSTALL file included in the distribution.
</body> </body>
</html> </html>
"; ";

View File

@@ -180,3 +180,10 @@ Changelog
Open Writeups page entirely. The writeups page now shows all Open Writeups page entirely. The writeups page now shows all
writeups for the selected date range, or today if no dates are writeups for the selected date range, or today if no dates are
specified. specified.
1.4.4 - 2025-12-10
- Fixed bug in writeupdetail.php that emerged with installation on a
system using MariaDB-10.11.14. A fatal error occurred when
trying to insert a null value into the action_reason field of
the writeups table (you left the action reason dropdown blank).
Previous versions just left it as is without complaint.

View File

@@ -146,6 +146,7 @@ elseif ($techsave) {
$clean_action_text=mysqli_real_escape_string($drs_db,$action_text); $clean_action_text=mysqli_real_escape_string($drs_db,$action_text);
// update the record in writeups // update the record in writeups
if ($action_reason=='') $action_reason=0;
mysqli_query($drs_db,"update writeups set status=\"$status\",action_by=\"$action_by\",action_date=\"$action_date\",action_time=\"$action_time\",action_reason=\"$action_reason\",action_text=\"$clean_action_text\" where id=\"$id\""); mysqli_query($drs_db,"update writeups set status=\"$status\",action_by=\"$action_by\",action_date=\"$action_date\",action_time=\"$action_time\",action_reason=\"$action_reason\",action_text=\"$clean_action_text\" where id=\"$id\"");
} }
} }

View File

@@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
DRS_VERSION="1.4.3" DRS_VERSION="1.4.4"
DOC_ROOT="/var/www" DOC_ROOT="/var/www"
INSTALL_LOC="opendrs" INSTALL_LOC="opendrs"
APACHE_USER="www-data" APACHE_USER="www-data"

View File

@@ -69,7 +69,7 @@ CREATE TABLE `config` (
LOCK TABLES `config` WRITE; LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */; /*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES INSERT INTO `config` VALUES
(1,'drs_version','1.4.3','1.4.3'), (1,'drs_version','1.4.4','1.4.4'),
(5,'app_name','OpenDRS - Discrepancy Reporting System','OpenDRS Discrepancy Reporting System'), (5,'app_name','OpenDRS - Discrepancy Reporting System','OpenDRS Discrepancy Reporting System'),
(6,'banner','1','1'), (6,'banner','1','1'),
(7,'background_color','0B3144','0B3144'), (7,'background_color','0B3144','0B3144'),

View File

@@ -1,8 +1,62 @@
#!/bin/bash
# opendrs-update.sh # opendrs-update.sh
install_path=$1 install_path=$1
# ---------- version 1.0.0 -------------
# Initial release
# --------------------------------------
# ---------- version 1.1.0 ------------- # ---------- version 1.1.0 -------------
# Change global database value from $mts_db to $drs_db # Change global database value from $mts_db to $drs_db
sed -i "s/mts_db/drs_db/g" $install_path/db.php sed -i "s/mts_db/drs_db/g" $install_path/db.php
# --------------------------------------- # ---------------------------------------
# ---------- version 1.1.1 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.1.2 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.2.0 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.3.0 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.3.1 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.3.2 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.3.3 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.4.0 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.4.1 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.4.2 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.4.3 -------------
# Nothing to do for this version
# --------------------------------------
# ---------- version 1.4.4 -------------
# Nothing to do for this version
# --------------------------------------

View File

@@ -265,3 +265,8 @@ UPDATE config SET value="1.4.2",defaultvalue="1.4.2" WHERE name="drs_version";
-- Update version number -- Update version number
UPDATE config SET value="1.4.3",defaultvalue="1.4.3" WHERE name="drs_version"; UPDATE config SET value="1.4.3",defaultvalue="1.4.3" WHERE name="drs_version";
-- -------------------------------------- -- --------------------------------------
-- ---------- version 1.4.4 -------------
-- Update version number
UPDATE config SET value="1.4.4",defaultvalue="1.4.4" WHERE name="drs_version";
-- --------------------------------------