Merge lp:~porten-deactivatedaccount/eventum/devel into lp:eventum

Proposed by Harri Porten
Status: Merged
Merged at revision: 4289
Proposed branch: lp:~porten-deactivatedaccount/eventum/devel
Merge into: lp:eventum
Diff against target: 26 lines (+4/-1)
2 files modified
lib/eventum/class.support.php (+1/-1)
tests/Mime_HelperTest.php (+3/-0)
To merge this branch: bzr merge lp:~porten-deactivatedaccount/eventum/devel
Reviewer Review Type Date Requested Status
Eventum Development Team Pending
Review via email: mp+47811@code.launchpad.net

Description of the change

When upgrading from version 1.7 to 2.2 and 2.3. we noticed that the "Last Action Date" column in the "List of Issues" table showed "Staff response" when a customer sent in a mail that was automatically assigned to existing ticket. Previously it had shown "User response".

Please review this change very carefully. We are not 100% either whether our understanding of what makes up a "user" is correct. And we still have some other patches in place that might make things different from the normal behavior.

To post a comment you must log in.
4274. By Harri Porten <porten@greco>

Test decodeQuotedPrintable() with multiple charsets.

4275. By Harri Porten <porten@greco>

Merge from trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/eventum/class.support.php'
2--- lib/eventum/class.support.php 2011-01-19 10:31:30 +0000
3+++ lib/eventum/class.support.php 2011-02-10 13:44:30 +0000
4@@ -784,7 +784,7 @@
5 if ((!empty($t['customer_id'])) && ($t['customer_id'] != 'NULL') && ((empty($usr_id)) || (User::getRoleByUser($usr_id, $prj_id) == User::getRoleID('Customer')))) {
6 Issue::markAsUpdated($t['issue_id'], 'customer action');
7 } else {
8- if ((!empty($usr_id)) && (User::getRoleByUser($usr_id, $prj_id) > User::getRoleID('Customer'))) {
9+ if ((!empty($usr_id)) && ($usr_id != APP_SYSTEM_USER_ID) && (User::getRoleByUser($usr_id, $prj_id) > User::getRoleID('Customer'))) {
10 Issue::markAsUpdated($t['issue_id'], 'staff response');
11 } else {
12 Issue::markAsUpdated($t['issue_id'], 'user response');
13
14=== modified file 'tests/Mime_HelperTest.php'
15--- tests/Mime_HelperTest.php 2011-02-01 13:22:01 +0000
16+++ tests/Mime_HelperTest.php 2011-02-10 13:44:30 +0000
17@@ -79,6 +79,9 @@
18 // test that result is returned to APP_CHARSET
19 array('=?ISO-8859-1?B?SuTkZ2VybWVpc3Rlcg==?=', 'Jäägermeister'),
20
21+ // different charsets inside one string
22+ array('=?ISO-8859-1?q?M=FCller=2C?= ACME =?US-ASCII?q?Corp=2E?=', 'Müller, ACME Corp.'),
23+
24 // bug
25 array('Subject: =?iso-8859-15?Q?n=FC=FCd_ei_t=F6=F6ta_adminni_publish_nupp_?=', 'Subject: nüüd ei tööta adminni publish nupp '),
26 array('Subject: nüüd ei tööta adminni publish nupp ', 'Subject: nüüd ei tööta adminni publish nupp '),

Subscribers

People subscribed via source and target branches