mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Enhance-Multiple messages display (#2702)
Store messages by mood so they can be grouped up change default mood to positive and add a default colour to catch messages with a wrong mood migrate settings so upgrading vs new is consistent
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
//proccess this only one time
|
||||
//process this only one time
|
||||
if ($domains_processed == 1) {
|
||||
//set domains with enabled status of empty or null to true
|
||||
$sql = "update v_domains set domain_enabled = 'true' where domain_enabled = '' or domain_enabled is null";
|
||||
@@ -39,6 +39,23 @@
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
//migrate old domain_settings
|
||||
$sql = "update v_domain_settings ";
|
||||
$sql .= "set domain_setting_value = '#fafafa' ";
|
||||
$sql .= "where domain_setting_subcategory = 'message_default_color' ";
|
||||
$sql .= "and domain_setting_value = '#ccffcc' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
}
|
||||
$sql = "update v_domain_settings ";
|
||||
$sql .= "set domain_setting_value = '#666' ";
|
||||
$sql .= "where domain_setting_subcategory = 'message_default_background_color' ";
|
||||
$sql .= "and domain_setting_value = '#004200' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
}
|
||||
unset($prep_statement, $sql);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user