vweb: add a missing check
							parent
							
								
									eacdd0d7e1
								
							
						
					
					
						commit
						ae014ad06d
					
				| 
						 | 
					@ -325,12 +325,9 @@ pub fn run<T>(global_app &T, port int) {
 | 
				
			||||||
			// println('vweb no db')
 | 
								// println('vweb no db')
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		$for field in T.fields {
 | 
							$for field in T.fields {
 | 
				
			||||||
			// if field.is_shared {
 | 
								if field.is_shared {
 | 
				
			||||||
			// println(field)
 | 
					 | 
				
			||||||
			//}
 | 
					 | 
				
			||||||
			//$if field.typ is string {
 | 
					 | 
				
			||||||
				request_app.$(field.name) = global_app.$(field.name)
 | 
									request_app.$(field.name) = global_app.$(field.name)
 | 
				
			||||||
			//}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		request_app.Context = global_app.Context // copy the context ref that contains static files map etc
 | 
							request_app.Context = global_app.Context // copy the context ref that contains static files map etc
 | 
				
			||||||
		// request_app.Context = Context{
 | 
							// request_app.Context = Context{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue