phoca email bug

Phoca Email (Newsletter) - sending emails and managing newsletters in Joomla! CMS
Freshwoody
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 02 Nov 2010, 22:25

phoca email bug

Post 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! :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca email bug

Post 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();
        }"; 
If you find Phoca extensions useful, please support the project
Freshwoody
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 02 Nov 2010, 22:25

Re: phoca email bug

Post 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 :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca email bug

Post by Jan »

Hi, article id - should be fixed in 1.0.2

https://www.phoca.cz/download/category/4 ... -component

Jan
If you find Phoca extensions useful, please support the project
Post Reply