SimpleDesk

SimpleDesk! => SimpleDesk Discussion => Topic started by: feline on April 07, 2010, 01:56:01 PM

Title: Move post and PM
Post by: feline on April 07, 2010, 01:56:01 PM
When I move a post from user YYZ to the ticket system, the user get a PM with to MY name  :o
See attached image

Fel
Title: Re: Move post and PM
Post by: tfs on April 07, 2010, 02:16:50 PM
Confirmed in 1.0.  PM goes to the original poster of the topic, but the PM itself says "Hello Admin" or whomever was the user who moved the topic.

Will post this in Tracker.  Thanks!
Title: Re: Move post and PM
Post by: cσσкιє мσηѕтєя on April 07, 2010, 02:35:39 PM
Quote from: Nas link=issue=333.com1880#com1880 date=1270661302
Nailed it.

Find in SimpleDesk-TopicTicketMove.php (Lines 717-725, as well as 349-357):

$request = shd_db_query('pm_find_username', '
SELECT id_member, member_name
FROM {db_prefix}members
WHERE {int:user}
LIMIT 1',
array(
'user' => $owner,
)
);


Replace with:

$request = shd_db_query('pm_find_username', '
SELECT id_member, real_name
FROM {db_prefix}members
WHERE id_member = {int:user}
LIMIT 1',
array(
'user' => $owner,
)
);


That should fix this silly little mistake. Thanks for the report, feline.
Title: Re: Move post and PM
Post by: Gruffen on April 07, 2010, 03:54:05 PM
Since this one's been dealt with in SVN, I'm marking it solved, thanks for the heads-up, Feline :)
Title: Re: Move post and PM
Post by: feline on April 07, 2010, 04:11:29 PM
I like it to help make a good software to better ...  :D

thanks Nas for the fix...