diff --git a/WebContent/WEB-INF/jsp/emport.jsp b/WebContent/WEB-INF/jsp/emport.jsp
index 955429d1c8..1026f10cca 100644
--- a/WebContent/WEB-INF/jsp/emport.jsp
+++ b/WebContent/WEB-INF/jsp/emport.jsp
@@ -330,7 +330,7 @@
+
|
diff --git a/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp b/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp
index b83ac00a08..ef23c3fc40 100644
--- a/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp
+++ b/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp
@@ -427,7 +427,7 @@ thead th {
|
-
diff --git a/WebContent/WEB-INF/jsp/systemSettings.jsp b/WebContent/WEB-INF/jsp/systemSettings.jsp
index 4fcff966fa..c77eae02e5 100644
--- a/WebContent/WEB-INF/jsp/systemSettings.jsp
+++ b/WebContent/WEB-INF/jsp/systemSettings.jsp
@@ -98,7 +98,7 @@
$set(sel, settings.);
});
-
+ /*
SystemSettingsDwr.checkTypeDB(function(msg){
if (msg == "derby") {
@@ -108,7 +108,7 @@
if (msg == "mysql") {
document.getElementById('radioMysql').checked = true;
}
- });
+ });*/
}
@@ -732,8 +732,8 @@
-
-
+
+
diff --git a/WebContent/WEB-INF/tags/page.tag b/WebContent/WEB-INF/tags/page.tag
index 431e1591d4..07cc5fa1d2 100644
--- a/WebContent/WEB-INF/tags/page.tag
+++ b/WebContent/WEB-INF/tags/page.tag
@@ -30,14 +30,14 @@
- ${instanceDescription}
+ ${instanceDescriptionHeader}
-
+
@@ -151,8 +151,8 @@
-
- ${instanceDescription}
+
+
@@ -278,7 +278,7 @@
diff --git a/scadalts-ui/build-config.js b/scadalts-ui/build-config.js
index a6e9400d76..608397e257 100644
--- a/scadalts-ui/build-config.js
+++ b/scadalts-ui/build-config.js
@@ -18,7 +18,7 @@ const json = require(pkgJsonPath);
// ----- PACKAGE.JSON VARIABLES ----- //
var tag = '0.3.0';
-var milestone = '2.6.0';
+var milestone = 'Unknown';
var build = '0';
var branch = 'local';
var commit = 'N/A';
diff --git a/scadalts-ui/package.json b/scadalts-ui/package.json
index 5074200d9d..0d29452ac1 100644
--- a/scadalts-ui/package.json
+++ b/scadalts-ui/package.json
@@ -1,13 +1,13 @@
{
"name": "scadalts-ui",
"version": "0.3.0",
- "tag": "2.6.1",
- "milestone": "2.6.1",
+ "tag": "Unknown",
+ "milestone": "Unknown",
"build": "1",
"branch": "local",
- "commit": "5576832f3e61b3fb31fa3b914260d1ef3f33b546",
+ "commit": "Unknown",
"pullRequestNumber": "1",
- "pullRequestBranch": "prerelease/2.5.0",
+ "pullRequestBranch": "local",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --port 3000",
diff --git a/src/com/serotonin/mango/Common.java b/src/com/serotonin/mango/Common.java
index f88550d4e0..c0cde2d0f9 100644
--- a/src/com/serotonin/mango/Common.java
+++ b/src/com/serotonin/mango/Common.java
@@ -47,6 +47,7 @@
import com.serotonin.ShouldNeverHappenException;
import com.serotonin.db.KeyValuePair;
+import org.scada_lts.config.ScadaVersion;
import org.scada_lts.dao.SystemSettingsDAO;
import com.serotonin.mango.util.BackgroundContext;
import com.serotonin.mango.util.CommPortConfigException;
@@ -93,7 +94,7 @@ public class Common {
* the correct version.
*/
public static final String getVersion() {
- return "2.6.10";
+ return ScadaVersion.getInstance().getVersionNumber();
}
public static final Long getStartupTime() {
diff --git a/src/com/serotonin/mango/web/dwr/SystemSettingsDwr.java b/src/com/serotonin/mango/web/dwr/SystemSettingsDwr.java
index ea589f8f0c..870313dee2 100644
--- a/src/com/serotonin/mango/web/dwr/SystemSettingsDwr.java
+++ b/src/com/serotonin/mango/web/dwr/SystemSettingsDwr.java
@@ -369,11 +369,11 @@ public DwrResponseI18n saveColourSettings(String chartBackgroundColour,
public void saveInfoSettings(String newVersionNotificationLevel,
String instanceDescription) {
Permissions.ensureAdmin();
- SystemSettingsDAO SystemSettingsDAO = new SystemSettingsDAO();
- SystemSettingsDAO.setValue(
+ SystemSettingsDAO systemSettingsDAO = new SystemSettingsDAO();
+ systemSettingsDAO.setValue(
SystemSettingsDAO.NEW_VERSION_NOTIFICATION_LEVEL,
newVersionNotificationLevel);
- SystemSettingsDAO.setValue(SystemSettingsDAO.INSTANCE_DESCRIPTION,
+ systemSettingsDAO.setValue(SystemSettingsDAO.INSTANCE_DESCRIPTION,
instanceDescription);
}
diff --git a/src/com/serotonin/mango/web/mvc/interceptor/CommonDataInterceptor.java b/src/com/serotonin/mango/web/mvc/interceptor/CommonDataInterceptor.java
index 2194ee2098..a80930cb7a 100644
--- a/src/com/serotonin/mango/web/mvc/interceptor/CommonDataInterceptor.java
+++ b/src/com/serotonin/mango/web/mvc/interceptor/CommonDataInterceptor.java
@@ -21,6 +21,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import org.joda.time.DateTime;
import org.scada_lts.config.ScadaVersion;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
@@ -37,9 +38,10 @@ public class CommonDataInterceptor implements HandlerInterceptor {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
request.setAttribute("availableLanguages", Common.getLanguages());
request.setAttribute("lang", ControllerUtils.getLocale(request).getLanguage());
- request.setAttribute("instanceDescription", SystemSettingsDAO.getValue(SystemSettingsDAO.INSTANCE_DESCRIPTION));
+ request.setAttribute("instanceDescriptionHeader", SystemSettingsDAO.getValue(SystemSettingsDAO.INSTANCE_DESCRIPTION));
request.setAttribute("NEW_ID", Common.NEW_ID);
request.setAttribute("scadaVersion", ScadaVersion.getInstance());
+ request.setAttribute("toYear", DateTime.now().getYear());
return true;
}
diff --git a/src/org/scada_lts/config/ScadaVersion.java b/src/org/scada_lts/config/ScadaVersion.java
index d6b4fd5d37..bceaadebc4 100644
--- a/src/org/scada_lts/config/ScadaVersion.java
+++ b/src/org/scada_lts/config/ScadaVersion.java
@@ -51,7 +51,7 @@ private ScadaVersion() {
private static void setUpScadaVersionProperties() {
if (configuration != null) {
showVersionInfo = Boolean.parseBoolean(configuration.getProperty("slts.version.show", "false"));
- versionNumber = configuration.getProperty("slts.version.number", Common.getVersion());
+ versionNumber = configuration.getProperty("slts.version.number", "Unknown");
buildNumber = Integer.parseInt(configuration.getProperty("slts.version.build", "0"));
commitNumber = configuration.getProperty("slts.version.commit", "");
runningOs = configuration.getProperty("slts.version.os", System.getProperty("os.name") + System.getProperty("os.version"));
diff --git a/src/org/scada_lts/dao/SystemSettingsDAO.java b/src/org/scada_lts/dao/SystemSettingsDAO.java
index 3b312258fc..6b0378717b 100644
--- a/src/org/scada_lts/dao/SystemSettingsDAO.java
+++ b/src/org/scada_lts/dao/SystemSettingsDAO.java
@@ -171,7 +171,7 @@ public class SystemSettingsDAO {
+ DATABASE_STATEMENT + ";";
private static final String SELECT_LATEST_SCHEMA_VERSION = ""
- + "SELECT version FROM schema_version ORDER BY version DESC LIMIT 1";
+ + "SELECT version FROM schema_version ORDER BY installed_rank DESC LIMIT 1";
// @formatter:on
private static final Log LOG = LogFactory.getLog(SystemSettingsDAO.class);
@@ -328,7 +328,7 @@ public String getDatabaseSchemaVersion(String key, String defaultValue) {
public static final Map DEFAULT_VALUES = new HashMap();
static {
- DEFAULT_VALUES.put(DATABASE_SCHEMA_VERSION, "0.7.0");
+ DEFAULT_VALUES.put(DATABASE_SCHEMA_VERSION, "Unknown");
DEFAULT_VALUES.put(HTTP_CLIENT_PROXY_SERVER, "");
DEFAULT_VALUES.put(HTTP_CLIENT_PROXY_PORT, -1);
@@ -361,7 +361,7 @@ public String getDatabaseSchemaVersion(String key, String defaultValue) {
DEFAULT_VALUES.put(FUTURE_DATE_LIMIT_PERIODS, 24);
DEFAULT_VALUES.put(FUTURE_DATE_LIMIT_PERIOD_TYPE,
Common.TimePeriods.HOURS);
- DEFAULT_VALUES.put(INSTANCE_DESCRIPTION, "Scada-LTS - 2.5");
+ DEFAULT_VALUES.put(INSTANCE_DESCRIPTION, "Click and set instance description");
DEFAULT_VALUES.put(CHART_BACKGROUND_COLOUR, "white");
DEFAULT_VALUES.put(PLOT_BACKGROUND_COLOUR, "white");
diff --git a/src/org/scada_lts/web/mvc/controller/PointHierarchyController.java b/src/org/scada_lts/web/mvc/controller/PointHierarchyController.java
index b1998f5b85..869d24d6f3 100644
--- a/src/org/scada_lts/web/mvc/controller/PointHierarchyController.java
+++ b/src/org/scada_lts/web/mvc/controller/PointHierarchyController.java
@@ -30,6 +30,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.joda.time.DateTime;
import org.scada_lts.cache.PointHierarchyCache;
import org.scada_lts.dao.model.pointhierarchy.PointHierarchyNode;
import org.scada_lts.service.pointhierarchy.PointHierarchyService;
@@ -76,6 +77,7 @@ protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpSer
model.put("appName", request.getContextPath());
model.put("appPort", request.getLocalPort());
+ model.put("toYear", DateTime.now().getYear());
return new ModelAndView("pointHierarchySLTS", model);
}
}
diff --git a/webapp-resources/version.properties b/webapp-resources/version.properties
index 974816c239..c8d8dcbe01 100644
--- a/webapp-resources/version.properties
+++ b/webapp-resources/version.properties
@@ -1,6 +1,6 @@
# Scada-LTS version info.
slts.version.show=true
-slts.version.number=v2.7.1
+slts.version.number=Unknown
slts.version.build=0
slts.version.commit=(N/A)
slts.version.branch=local