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
				
			
		| 
						 | 
					@ -6,6 +6,7 @@
 | 
				
			||||||
    * Move captcha over email [#45](https://github.com/getgrav/grav-plugin-comments/issues/45)
 | 
					    * Move captcha over email [#45](https://github.com/getgrav/grav-plugin-comments/issues/45)
 | 
				
			||||||
1. [](#bugfix)
 | 
					1. [](#bugfix)
 | 
				
			||||||
    * Fix comment form processing
 | 
					    * Fix comment form processing
 | 
				
			||||||
 | 
					    * Fix issue with scope for autofilled values
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# v1.2.6
 | 
					# v1.2.6
 | 
				
			||||||
## 01/09/2017
 | 
					## 01/09/2017
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,9 +14,9 @@
 | 
				
			||||||
            {% endif %}
 | 
					            {% endif %}
 | 
				
			||||||
            {% if config.plugins.login.enabled and grav.user.authenticated %}
 | 
					            {% if config.plugins.login.enabled and grav.user.authenticated %}
 | 
				
			||||||
                {% if field.name == 'name' %}
 | 
					                {% 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' %}
 | 
					                {% 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 %}
 | 
					                {% else %}
 | 
				
			||||||
                    <div>
 | 
					                    <div>
 | 
				
			||||||
                        {% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
 | 
					                        {% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue