diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-schema | 1 | ||||
-rwxr-xr-x | bin/zurich/overdue-alert | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/update-schema b/bin/update-schema index 500e771f1..479a55c8e 100755 --- a/bin/update-schema +++ b/bin/update-schema @@ -194,6 +194,7 @@ else { # By querying the database schema, we can see where we're currently at # (assuming schema change files are never half-applied, which should be the case) sub get_db_version { + return '0047' if column_exists('response_priorities', 'description'); return '0046' if column_exists('users', 'extra'); return '0045' if table_exists('response_priorities'); return '0044' if table_exists('contact_response_templates'); diff --git a/bin/zurich/overdue-alert b/bin/zurich/overdue-alert index 3b312c4db..90e31df1c 100755 --- a/bin/zurich/overdue-alert +++ b/bin/zurich/overdue-alert @@ -49,7 +49,8 @@ sub loop_through { my %to_send = (); while (my $row = $reports->next) { - $to_send{$row->bodies_str} .= '* ' . $row->id . ": '" . $row->title . "'\n\n"; + $to_send{$row->bodies_str} ||= []; + push @{$to_send{$row->bodies_str}}, $row; } foreach my $body_id (keys %to_send) { @@ -66,6 +67,7 @@ sub send_alert { my $h = { data => $data, admin_url => $cobrand->admin_base_url, + cobrand => $cobrand, }; my $to = [ [ $body_email, $body->name ] ]; |