mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	Fixes #17341: Fixed error from yii.activeForm.js in strict mode
This commit is contained in:
		 Michael Härtl
					Michael Härtl
				
			
				
					committed by
					
						 Alexander Makarov
						Alexander Makarov
					
				
			
			
				
	
			
			
			 Alexander Makarov
						Alexander Makarov
					
				
			
						parent
						
							869c8aa220
						
					
				
				
					commit
					3297f207f5
				
			| @ -4,7 +4,7 @@ Yii Framework 2 Change Log | ||||
| 2.0.21 under development | ||||
| ------------------------ | ||||
|  | ||||
| - no changes in this release. | ||||
| - Bug #17341: Fixed error from yii.activeForm.js in strict mode (mikehaertl) | ||||
|  | ||||
|  | ||||
| 2.0.20 June 04, 2019 | ||||
|  | ||||
| @ -706,9 +706,9 @@ | ||||
|         } | ||||
|  | ||||
|         if (submitting) { | ||||
|             var errorAttributes = []; | ||||
|             var $input = findInput($form, this); | ||||
|             var errorAttributes = [], $input; | ||||
|             $.each(data.attributes, function () { | ||||
|                 $input = findInput($form, this); | ||||
|                 if (!$input.is(":disabled") && !this.cancelled && updateInput($form, this, messages)) { | ||||
|                     errorAttributes.push(this); | ||||
|                 } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user