Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
4d02a3c2
Commit
4d02a3c2
authored
12 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Add patch to upgrade to f4da0c9befa257b5a20a923d4e9c0e91
parent
27c382a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/upgrader/sql/dd0022fb-f4da0c9b.patch.sql
+75
-39
75 additions, 39 deletions
include/upgrader/sql/dd0022fb-f4da0c9b.patch.sql
main.inc.php
+1
-1
1 addition, 1 deletion
main.inc.php
with
76 additions
and
40 deletions
include/upgrader/sql/dd0022fb-f4da0c9b.patch.sql
+
75
−
39
View file @
4d02a3c2
...
...
@@ -37,7 +37,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%id'
,
'%{ticket.id}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%id'
,
'%{ticket.id}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%id'
,
'%{ticket.id}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%id'
,
'%{ticket.id}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%id'
,
'%{ticket.id}'
);
-- %ticket
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -61,8 +61,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%ticket'
,
'%{ticket.number}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%ticket'
,
'%{ticket.number}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%ticket'
,
'%{ticket.number}'
),
`ticket_over
limit
_subj`
=
REPLACE
(
`ticket_over
limit
_subj`
,
'%ticket'
,
'%{ticket.number}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%ticket'
,
'%{ticket.number}'
);
`ticket_over
due
_subj`
=
REPLACE
(
`ticket_over
due
_subj`
,
'%ticket'
,
'%{ticket.number}'
),
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%ticket'
,
'%{ticket.number}'
);
-- %subject
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -86,8 +86,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%subject'
,
'%{ticket.subject}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%subject'
,
'%{ticket.subject}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%subject'
,
'%{ticket.subject}'
),
`ticket_over
limit
_subj`
=
REPLACE
(
`ticket_over
limit
_subj`
,
'%subject'
,
'%{ticket.subject}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%subject'
,
'%{ticket.subject}'
);
`ticket_over
due
_subj`
=
REPLACE
(
`ticket_over
due
_subj`
,
'%subject'
,
'%{ticket.subject}'
),
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%subject'
,
'%{ticket.subject}'
);
-- %name
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -111,8 +111,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%name'
,
'%{ticket.name}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%name'
,
'%{ticket.name}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%name'
,
'%{ticket.name}'
),
`ticket_over
limit
_subj`
=
REPLACE
(
`ticket_over
limit
_subj`
,
'%name'
,
'%{ticket.name}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%name'
,
'%{ticket.name}'
);
`ticket_over
due
_subj`
=
REPLACE
(
`ticket_over
due
_subj`
,
'%name'
,
'%{ticket.name}'
),
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%name'
,
'%{ticket.name}'
);
-- %email
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -136,8 +136,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%email'
,
'%{ticket.email}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%email'
,
'%{ticket.email}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%email'
,
'%{ticket.email}'
),
`ticket_over
limit
_subj`
=
REPLACE
(
`ticket_over
limit
_subj`
,
'%email'
,
'%{ticket.email}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%email'
,
'%{ticket.email}'
);
`ticket_over
due
_subj`
=
REPLACE
(
`ticket_over
due
_subj`
,
'%email'
,
'%{ticket.email}'
),
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%email'
,
'%{ticket.email}'
);
-- %status
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -161,8 +161,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%status'
,
'%{ticket.status}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%status'
,
'%{ticket.status}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%status'
,
'%{ticket.status}'
),
`ticket_over
limit
_subj`
=
REPLACE
(
`ticket_over
limit
_subj`
,
'%status'
,
'%{ticket.status}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%status'
,
'%{ticket.status}'
);
`ticket_over
due
_subj`
=
REPLACE
(
`ticket_over
due
_subj`
,
'%status'
,
'%{ticket.status}'
),
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%status'
,
'%{ticket.status}'
);
-- %priority
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -186,8 +186,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%priority'
,
'%{ticket.priority}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%priority'
,
'%{ticket.priority}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%priority'
,
'%{ticket.priority}'
),
`ticket_over
limit
_subj`
=
REPLACE
(
`ticket_over
limit
_subj`
,
'%priority'
,
'%{ticket.priority}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%priority'
,
'%{ticket.priority}'
);
`ticket_over
due
_subj`
=
REPLACE
(
`ticket_over
due
_subj`
,
'%priority'
,
'%{ticket.priority}'
),
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%priority'
,
'%{ticket.priority}'
);
-- %auth
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -201,7 +201,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%auth'
,
'%{ticket.auth_code}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%auth'
,
'%{ticket.auth_code}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%auth'
,
'%{ticket.auth_code}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%auth'
,
'%{ticket.auth_code}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%auth'
,
'%{ticket.auth_code}'
);
-- %phone
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -215,7 +215,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%phone'
,
'%{ticket.phone_number}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%phone'
,
'%{ticket.phone_number}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%phone'
,
'%{ticket.phone_number}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%phone'
,
'%{ticket.phone_number}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%phone'
,
'%{ticket.phone_number}'
);
-- %createdate
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -229,7 +229,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%createdate'
,
'%{ticket.create_date}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%createdate'
,
'%{ticket.create_date}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%createdate'
,
'%{ticket.create_date}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%createdate'
,
'%{ticket.create_date}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%createdate'
,
'%{ticket.create_date}'
);
-- %duedate
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -243,7 +243,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%duedate'
,
'%{ticket.due_date}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%duedate'
,
'%{ticket.due_date}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%duedate'
,
'%{ticket.due_date}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%duedate'
,
'%{ticket.due_date}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%duedate'
,
'%{ticket.due_date}'
);
-- %closedate
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -257,7 +257,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%closedate'
,
'%{ticket.close_date}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%closedate'
,
'%{ticket.close_date}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%closedate'
,
'%{ticket.close_date}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%closedate'
,
'%{ticket.close_date}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%closedate'
,
'%{ticket.close_date}'
);
-- %topic
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -271,7 +271,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%topic'
,
'%{ticket.topic.name}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%topic'
,
'%{ticket.topic.name}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%topic'
,
'%{ticket.topic.name}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%topic'
,
'%{ticket.topic.name}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%topic'
,
'%{ticket.topic.name}'
);
-- %dept
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -284,8 +284,9 @@ UPDATE `%TABLE_PREFIX%email_template`
`message_alert_body`
=
REPLACE
(
`message_alert_body`
,
'%dept'
,
'%{ticket.dept.name}'
),
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%dept'
,
'%{ticket.dept.name}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%dept'
,
'%{ticket.dept.name}'
),
`transfer_alert_subj`
=
REPLACE
(
`transfer_alert_subj`
,
'%dept'
,
'%{ticket.dept.name}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%dept'
,
'%{ticket.dept.name}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%dept'
,
'%{ticket.dept.name}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%dept'
,
'%{ticket.dept.name}'
);
-- %team
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -299,7 +300,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%team'
,
'%{ticket.team.name}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%team'
,
'%{ticket.team.name}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%team'
,
'%{ticket.team.name}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%team'
,
'%{ticket.team.name}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%team'
,
'%{ticket.team.name}'
);
-- %clientlink
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -313,7 +314,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%clientlink'
,
'%{ticket.client_link}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%clientlink'
,
'%{ticket.client_link}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%clientlink'
,
'%{ticket.client_link}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%clientlink'
,
'%{ticket.client_link}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%clientlink'
,
'%{ticket.client_link}'
);
-- %staff (recipient of the alert)
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -322,7 +323,8 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%staff'
,
'%{recipient}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%staff'
,
'%{recipient}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%staff'
,
'%{recipient}'
),
`ticket_overlimit_body`
=
REPLACE
(
`ticket_overlimit_body`
,
'%staff'
,
'%{recipient}'
);
`ticket_overlimit_body`
=
REPLACE
(
`ticket_overlimit_body`
,
'%staff'
,
'%{recipient}'
),
`ticket_overdue_body`
=
REPLACE
(
`ticket_overdue_body`
,
'%staff'
,
'%{recipient}'
);
-- %message
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -336,7 +338,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%message'
,
'%{message}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%message'
,
'%{message}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%message'
,
'%{message}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%message'
,
'%{message}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%message'
,
'%{message}'
);
-- %response
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -350,21 +352,23 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%response'
,
'%{response}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%response'
,
'%{response}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%response'
,
'%{response}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%response'
,
'%{response}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%response'
,
'%{response}'
);
-- %note
UPDATE
`%TABLE_PREFIX%email_template`
SET
`ticket_autoresp_body`
=
REPLACE
(
`ticket_autoresp_body`
,
'%note'
,
'%{note}'
),
`message_autoresp_body`
=
REPLACE
(
`message_autoresp_body`
,
'%note'
,
'%{note}'
),
`ticket_notice_body`
=
REPLACE
(
`ticket_notice_body`
,
'%note'
,
'%{note}'
),
`ticket_overlimit_body`
=
REPLACE
(
`ticket_overlimit_body`
,
'%note'
,
'%{note}'
),
`ticket_reply_body`
=
REPLACE
(
`ticket_reply_body`
,
'%note'
,
'%{note}'
),
`ticket_alert_body`
=
REPLACE
(
`ticket_alert_body`
,
'%note'
,
'%{note}'
),
`message_alert_body`
=
REPLACE
(
`message_alert_body`
,
'%note'
,
'%{note}'
),
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%note'
,
'%{title}
\r\n
%{note}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%note'
,
'%{note}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%note'
,
'%{note}'
),
`ticket_overlimit_body`
=
REPLACE
(
`ticket_overlimit_body`
,
'%note'
,
'%{note}'
);
SET
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%note'
,
'* %{note.title} *
\r\n\r\n
%{note.message}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%note'
,
'%{comments}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%note'
,
'%{comments}'
);
-- %{note} (dev branch installations)
UPDATE
`%TABLE_PREFIX%email_template`
SET
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%{note}'
,
'%{note.message}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%{note}'
,
'%{comments}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%{note}'
,
'%{comments}'
);
-- %{title} (dev branch installations)
UPDATE
`%TABLE_PREFIX%email_template`
SET
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%{title}'
,
'* %{note.title} *
\r\n
'
);
-- %url
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -378,7 +382,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%url'
,
'%{url}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%url'
,
'%{url}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%url'
,
'%{url}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%url'
,
'%{url}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%url'
,
'%{url}'
);
-- %signature
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -392,7 +396,7 @@ UPDATE `%TABLE_PREFIX%email_template`
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%signature'
,
'%{signature}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%signature'
,
'%{signature}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%signature'
,
'%{signature}'
),
`ticket_over
limit
_body`
=
REPLACE
(
`ticket_over
limit
_body`
,
'%signature'
,
'%{signature}'
);
`ticket_over
due
_body`
=
REPLACE
(
`ticket_over
due
_body`
,
'%signature'
,
'%{signature}'
);
-- %assignee
UPDATE
`%TABLE_PREFIX%email_template`
...
...
@@ -404,6 +408,38 @@ UPDATE `%TABLE_PREFIX%email_template`
SET
`assigned_alert_subj`
=
REPLACE
(
`assigned_alert_subj`
,
'%assigner'
,
'%{assigner}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%assigner'
,
'%{assigner}'
);
/* Change links */
-- Client URL -> %{url}/view.php?e=%{ticket.email}&t=%{ticket.number}
UPDATE
`%TABLE_PREFIX%email_template`
SET
`ticket_autoresp_body`
=
REPLACE
(
`ticket_autoresp_body`
,
'%{url}/view.php?e=%{ticket.email}&t=%{ticket.number}'
,
'%{ticket.client_link}'
),
`message_autoresp_body`
=
REPLACE
(
`message_autoresp_body`
,
'%{url}/view.php?e=%{ticket.email}&t=%{ticket.number}'
,
'%{ticket.client_link}'
),
`ticket_notice_body`
=
REPLACE
(
`ticket_notice_body`
,
'%{url}/view.php?e=%{ticket.email}&t=%{ticket.number}'
,
'%{ticket.client_link}'
),
`ticket_overlimit_body`
=
REPLACE
(
`ticket_overlimit_body`
,
'%{url}/view.php?e=%{ticket.email}&t=%{ticket.number}'
,
'%{ticket.client_link}'
),
`ticket_reply_body`
=
REPLACE
(
`ticket_reply_body`
,
'%{url}/view.php?e=%{ticket.email}&t=%{ticket.number}'
,
'%{ticket.client_link}'
);
-- Client URL -> %{url}/view.php?e=%{ticket.email} (overlimit template)
UPDATE
`%TABLE_PREFIX%email_template`
SET
`ticket_overlimit_body`
=
REPLACE
(
`ticket_overlimit_body`
,
'%{url}/view.php?e=%{ticket.email}'
,
'%{url}/tickets.php?e=%{ticket.email}'
);
-- Staff URL -> %{url}/scp/ticket.php?id=%{ticket.id} (should be tickets.php)
UPDATE
`%TABLE_PREFIX%email_template`
SET
`ticket_alert_body`
=
REPLACE
(
`ticket_alert_body`
,
'%{url}/scp/ticket.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`message_alert_body`
=
REPLACE
(
`message_alert_body`
,
'%{url}/scp/ticket.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%{url}/scp/ticket.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%{url}/scp/ticket.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%{url}/scp/ticket.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`ticket_overdue_body`
=
REPLACE
(
`ticket_overdue_body`
,
'%{url}/scp/ticket.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
);
-- Staff URL 2 -> %{url}/scp/tickets.php?id=%{ticket.id}
UPDATE
`%TABLE_PREFIX%email_template`
SET
`ticket_alert_body`
=
REPLACE
(
`ticket_alert_body`
,
'%{url}/scp/tickets.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`message_alert_body`
=
REPLACE
(
`message_alert_body`
,
'%{url}/scp/tickets.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`note_alert_body`
=
REPLACE
(
`note_alert_body`
,
'%{url}/scp/tickets.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`assigned_alert_body`
=
REPLACE
(
`assigned_alert_body`
,
'%{url}/scp/tickets.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`transfer_alert_body`
=
REPLACE
(
`transfer_alert_body`
,
'%{url}/scp/tickets.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
),
`ticket_overdue_body`
=
REPLACE
(
`ticket_overdue_body`
,
'%{url}/scp/tickets.php?id=%{ticket.id}'
,
'%{ticket.staff_link}'
);
-- update schema signature
UPDATE
`%TABLE_PREFIX%config`
SET
`schema_signature`
=
'
157195364f4f2f68936cd432b86b035
1'
;
SET
`schema_signature`
=
'
f4da0c9befa257b5a20a923d4e9c0e9
1'
;
This diff is collapsed.
Click to expand it.
main.inc.php
+
1
−
1
View file @
4d02a3c2
...
...
@@ -63,7 +63,7 @@
#Current version && schema signature (Changes from version to version)
define
(
'THIS_VERSION'
,
'1.7-RC2+'
);
//Shown on admin panel
define
(
'SCHEMA_SIGNATURE'
,
'
157195364f4f2f68936cd432b86b035
1'
);
//MD5 signature of the db schema. (used to trigger upgrades)
define
(
'SCHEMA_SIGNATURE'
,
'
f4da0c9befa257b5a20a923d4e9c0e9
1'
);
//MD5 signature of the db schema. (used to trigger upgrades)
#load config info
$configfile
=
''
;
if
(
file_exists
(
ROOT_DIR
.
'ostconfig.php'
))
//Old installs prior to v 1.6 RC5
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment