| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -188,12 +188,9 @@ class ToolChain | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            /** @var Tool $toolEntity */ | 
					 | 
					 | 
					 | 
					            /** @var Tool $toolEntity */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $toolEntity = $toolRepo->findOneBy($criteria); | 
					 | 
					 | 
					 | 
					            $toolEntity = $toolRepo->findOneBy($criteria); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if ($toolEntity) { | 
					 | 
					 | 
					 | 
					            if ($toolEntity) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                $position = $toolList[$tool->getTitle()] + 1; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                $courseTool = (new CTool()) | 
					 | 
					 | 
					 | 
					                $courseTool = (new CTool()) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    ->setTool($toolEntity) | 
					 | 
					 | 
					 | 
					                    ->setTool($toolEntity) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    ->setTitle($tool->getTitle()) | 
					 | 
					 | 
					 | 
					                    ->setTitle($tool->getTitle()) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    ->setPosition($position) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    ->setVisibility($visibility) | 
					 | 
					 | 
					 | 
					                    ->setVisibility($visibility) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    ->setParent($course) | 
					 | 
					 | 
					 | 
					                    ->setParent($course) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    ->setCreator($course->getCreator()) | 
					 | 
					 | 
					 | 
					                    ->setCreator($course->getCreator()) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |