Fix issue with scope for autofilled values
This commit is contained in:
		
							parent
							
								
									228ac73ba8
								
							
						
					
					
						commit
						42ff556420
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -14,9 +14,9 @@
 | 
			
		|||
            {% endif %}
 | 
			
		||||
            {% if config.plugins.login.enabled and grav.user.authenticated %}
 | 
			
		||||
                {% if field.name == 'name' %}
 | 
			
		||||
                    <input type="hidden" name="{{field.name}}" value="{{grav.user.fullname}}">
 | 
			
		||||
                    <input type="hidden" name="{{ (scope ~ field.name)|fieldName }}" value="{{grav.user.fullname}}">
 | 
			
		||||
                {% elseif field.name == 'email' %}
 | 
			
		||||
                    <input type="hidden" name="{{field.name}}" value="{{grav.user.email}}">
 | 
			
		||||
                    <input type="hidden" name="{{ (scope ~ field.name)|fieldName }}" value="{{grav.user.email}}">
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    <div>
 | 
			
		||||
                        {% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue