mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Bug fixes for import page
This commit is contained in:
		
							parent
							
								
									b624bb13c3
								
							
						
					
					
						commit
						0d3be448df
					
				@ -31,6 +31,11 @@ class ImportController extends BaseController
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ( ! count($files)) {
 | 
			
		||||
            Session::flash('error', trans('texts.select_file'));
 | 
			
		||||
            return Redirect::to('/settings/' . ACCOUNT_IMPORT_EXPORT);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            if ($source === IMPORT_CSV) {
 | 
			
		||||
                $data = $this->importService->mapCSV($files);
 | 
			
		||||
 | 
			
		||||
@ -23,6 +23,7 @@ class QueryLogging
 | 
			
		||||
        // Enable query logging for development
 | 
			
		||||
        if (Utils::isNinjaDev()) {
 | 
			
		||||
            DB::enableQueryLog();
 | 
			
		||||
            $timeStart = microtime(true);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $response = $next($request);
 | 
			
		||||
@ -32,7 +33,9 @@ class QueryLogging
 | 
			
		||||
            if (strstr($request->url(), '_debugbar') === false) {
 | 
			
		||||
                $queries = DB::getQueryLog();
 | 
			
		||||
                $count = count($queries);
 | 
			
		||||
                Log::info($request->method() . ' - ' . $request->url() . ": $count queries");
 | 
			
		||||
                $timeEnd = microtime(true);
 | 
			
		||||
                $time = $timeEnd - $timeStart;
 | 
			
		||||
                Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
 | 
			
		||||
                //Log::info($queries);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -92,6 +92,7 @@
 | 
			
		||||
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
  $(function() {
 | 
			
		||||
      setFileTypesVisible();
 | 
			
		||||
      setCheckboxesEnabled();
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user