Skip to content

Commit

Permalink
#613 - Do not override module.json file when installing module
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementBareth committed Sep 8, 2022
1 parent e6a4c6b commit 0594626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@ public File findPom(MeveoModule module) {

@Override
public void addFilesToModule(MeveoModule entity, MeveoModule module) throws BusinessException {
if (installationContext.isActive()) {
return;
}

// Fetch entities for special serialization
MeveoModule newModule = findByCodeWithFetchEntities(entity.getCode());
getEntityManager().detach(newModule);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public abstract class BusinessService<P extends BusinessEntity> extends Persiste
protected MeveoModuleService meveoModuleService;

@Inject
private ModuleInstallationContext installationContext;
protected ModuleInstallationContext installationContext;

@Inject
@MeveoRepository
Expand Down

0 comments on commit 0594626

Please sign in to comment.