Bladeren bron

updated project from VERSION_GIT in Install route

Piotr Labudda 8 jaren geleden
bovenliggende
commit
43a8447ca1
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      SE/se-lib/Route/Install.php

+ 5 - 1
SE/se-lib/Route/Install.php

@@ -442,7 +442,10 @@ jQuery(document).ready(function () {
 		$appLicenceInfo->installFolderGitExists = file_exists("{$appLicenceInfo->installPath}/.git");
 
 		$appLicenceInfo->projects = []; // TODO: get from db
-		if (79 == $idLicence) { // bravecom.procesy5.pl
+		if (!empty($appLicenceInfo->projects)) {
+			$appLicenceInfo->projects = [ $appLicenceInfo->project ];
+		}
+		else if (79 == $idLicence) { // bravecom.procesy5.pl
 			$appLicenceInfo->projects = [ 'bravecare' ];
 		} else if (80 == $idLicence) { // bravecom.yellowgroup.pl
 			$appLicenceInfo->projects = [ 'bocian' ];
@@ -567,6 +570,7 @@ jQuery(document).ready(function () {
 				, g.ADMIN_USERNAME as rootLogin
 				, g.ADMIN_USERNAME_PASSWD as rootPassword
 				, g.SSH_PORT as sshPort
+				, g.VERSION_GIT as project
 			from SES_PROCESY5_A g
 			where g.`ID`=:id_licence
 			-- TODO: and g.A_STATUS in('NORMAL','WAITING')