mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	BaseHtml::activeListBox() incorrect 'unselect' value fixed.
This commit is contained in:
		@ -1276,7 +1276,7 @@ class BaseHtml
 | 
				
			|||||||
		$name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute);
 | 
							$name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute);
 | 
				
			||||||
		$selection = static::getAttributeValue($model, $attribute);
 | 
							$selection = static::getAttributeValue($model, $attribute);
 | 
				
			||||||
		if (!array_key_exists('unselect', $options)) {
 | 
							if (!array_key_exists('unselect', $options)) {
 | 
				
			||||||
			$options['unselect'] = '0';
 | 
								$options['unselect'] = '';
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (!array_key_exists('id', $options)) {
 | 
							if (!array_key_exists('id', $options)) {
 | 
				
			||||||
			$options['id'] = static::getInputId($model, $attribute);
 | 
								$options['id'] = static::getInputId($model, $attribute);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user