mirror of
				https://github.com/Mibew/tray.git
				synced 2025-10-03 00:03:34 +03:00 
			
		
		
		
	Fixed empty default department description in prechat survey
This commit is contained in:
		
							parent
							
								
									87676a5cee
								
							
						
					
					
						commit
						4e69fc957d
					
				| @ -339,12 +339,14 @@ function setup_survey($name, $email, $groupid, $info, $referrer) | ||||
| 			if ($k['ilastseen'] !== NULL && $k['ilastseen'] < $settings['online_timeout']) { | ||||
| 				if (!$groupid) { | ||||
| 					$groupid = $k['groupid']; // select first online group
 | ||||
| 					$defaultdescription = $k['vclocaldescription']; | ||||
| 				} | ||||
| 			} else { | ||||
| 				$groupname .= " (offline)"; | ||||
| 			} | ||||
| 			$isselected = $k['groupid'] == $groupid; | ||||
| 			if ($isselected) { | ||||
| 				$defaultdescription = $k['vclocaldescription']; | ||||
| 			} | ||||
| 			$val .= "<option value=\"" . $k['groupid'] . "\"" . ($isselected ? " selected=\"selected\"" : "") . ">$groupname</option>"; | ||||
| 			$groupdescriptions[] = $k['vclocaldescription']; | ||||
| 		} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user