Ver código fonte

fixed fetch SE/projects by VERSION_GIT in route install

Piotr Labudda 8 anos atrás
pai
commit
232cd9c6bd
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      SE/se-lib/Route/Install.php

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

@@ -668,7 +668,7 @@ jQuery(document).ready(function () {
 		$appLicenceInfo->installFolderGitExists = file_exists("{$appLicenceInfo->installPath}/.git");
 
 		$appLicenceInfo->projects = []; // TODO: get from db
-		if (!empty($appLicenceInfo->projects)) {
+		if (!empty($appLicenceInfo->project)) {
 			$appLicenceInfo->projects = [ $appLicenceInfo->project ];
 		}
 		else if (79 == $idLicence) { // bravecom.procesy5.pl
@@ -820,6 +820,7 @@ jQuery(document).ready(function () {
 				, g.ADMIN_USERNAME_DIRECTORY as ldapUser
 				, g.ADMIN_USERNAME_PASSWD as ldapPass
 				, g.SERVER_ADDRESS_LDAP_DC as ldapBaseDN
+				, g.VERSION_GIT as project
 			from SES_PROCESY5_A g
 			where g.`ID`=:id_licence
 			-- TODO: and g.A_STATUS in('NORMAL','WAITING')