Skip to content
Snippets Groups Projects
Verified Commit 7abc4283 authored by Damien's avatar Damien
Browse files

[VERSION] Only branch in database xml

parent 9101a994
No related branches found
No related tags found
No related merge requests found
...@@ -635,7 +635,7 @@ abstract class business_app_tools_Abstract extends Database ...@@ -635,7 +635,7 @@ abstract class business_app_tools_Abstract extends Database
$_SESSION['maarch_entreprise']['database_version'] = "none"; $_SESSION['maarch_entreprise']['database_version'] = "none";
} else { } else {
$vbg = $stmt->fetchObject(); $vbg = $stmt->fetchObject();
$_SESSION['maarch_entreprise']['database_version'] = $vbg->param_value_string; $_SESSION['maarch_entreprise']['database_version'] = substr($vbg->param_value_string, 0, 5);
$_SESSION['maarch_entreprise']['database_version_minor'] = $vbg->param_value_string; $_SESSION['maarch_entreprise']['database_version_minor'] = $vbg->param_value_string;
} }
//If this two parameters is not find, this is the end of this function //If this two parameters is not find, this is the end of this function
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<database_version>18.04.1</database_version> <!-- 18.04 --> <database_version>18.04</database_version> <!-- 18.04 -->
</root> </root>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment