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 | 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 | 2.0.20 June 04, 2019 | ||||||
|  | |||||||
| @ -706,9 +706,9 @@ | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         if (submitting) { |         if (submitting) { | ||||||
|             var errorAttributes = []; |             var errorAttributes = [], $input; | ||||||
|             var $input = findInput($form, this); |  | ||||||
|             $.each(data.attributes, function () { |             $.each(data.attributes, function () { | ||||||
|  |                 $input = findInput($form, this); | ||||||
|                 if (!$input.is(":disabled") && !this.cancelled && updateInput($form, this, messages)) { |                 if (!$input.is(":disabled") && !this.cancelled && updateInput($form, this, messages)) { | ||||||
|                     errorAttributes.push(this); |                     errorAttributes.push(this); | ||||||
|                 } |                 } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user