Page 1 of 1
phoca email bug
Posted: 28 Dec 2010, 23:53
by Freshwoody
Hi,
I have a problem with the email component.
When I write a new email and add a article it works only when the article is from the 1st page on the upcoming window. When you set a filter or go to page 2 you can't add an article. It only works when you close the little window and open it again.
But do you set a new filter or go to page 3 or return to page 1 .... it doens't work again.
Can you fix it please? I know how to make it work but it isn't fine.
Thank you!

Re: phoca email bug
Posted: 01 Jan 2011, 23:01
by Jan
Hi, confirmed, I will fix it in new version.
For now you can edit it in your code:
administrator\components\com_phocaemail\views\phocaemailwrite\view.html.php
FROM:
Code: Select all
$js = "
function jSelectArticle(id, title, object) {
document.getElementById(object + '_id').value = id;
document.getElementById(object + '_name').value = title;
document.getElementById(object + '_name_display').value = title;
document.getElementById('sbox-window').close();
}";
TO:
Code: Select all
$js = "
function jSelectArticle(id, title, object) {
/* If the modal window will be refreshed, the object=article will be lost
and standard Joomla! id will be set, so correct it */
if (object == 'id') {
object = 'article';
}
document.getElementById(object + '_id').value = id;
document.getElementById(object + '_name').value = title;
document.getElementById(object + '_name_display').value = title;
document.getElementById('sbox-window').close();
}";
Re: phoca email bug
Posted: 06 Jan 2011, 20:55
by Freshwoody
Hi Jan,
thanks for your work.
But now I have another problem.
When I wrote a email and want to write another email, i can't clear the article field. But I dont want to send on every email an article too.
The Component clears only when I Logout from Backend and relog. Only go to another Component or on Mainmenu and return to Phoca email doesn't help. Everything will remain unaffected.
Pls help

Re: phoca email bug
Posted: 07 Jan 2011, 00:08
by Jan