config issue with 'Overwrite global config values'

Technical talks related to the Joom!Fish project. All those discussions are mostly related to development or high-profile usage of the extension.

config issue with 'Overwrite global config values'

Postby pollen8 on Thu Oct 22, 2009 12:58 pm

In the component control panel parameters options if you have 'Overwrite global config values' set to yes. This wil overwrite Joomla's config with the loaded Joomfish language parameters.

But if the active language has no translation from mailfrom or mailfromname in the langugage parameters (components->joomfish->language configuration then press the config button next to each language) Joomla's config values for those options are replaced with "".

This means that ANY other component trying to access those values get a blank string and can not send email :O

Surely it would be better to test if a translation has been set and then and only then use those values?

proposed fix:

plugins/system/jfrouter.php

replace line 350:

Code: Select all
$registry->setValue("config.".$key,$val);


with

Code: Select all
if (trim($val) !== '') {
   $registry->setValue("config.".$key,$val);
}
pollen8
Newbee
 
Posts: 1
Joined: Thu Oct 22, 2009 12:49 pm

[Fixed] config issue with 'Overwrite global config values'

Postby alex on Thu Jul 29, 2010 5:52 pm

Thx for the hint. Implemented in the latest trunk SVN, will be released with JF 2.1

Alex
JoomFish core team member
Think Network GmbH - strategic consulting and internet services

You need more Joomla Support? May be Open Source Support Desk can help you!
User avatar
alex
Core Member
 
Posts: 1915
Joined: Fri Oct 19, 2007 4:58 pm
Location: Konstanz, Germany

Re: config issue with 'Overwrite global config values'

Postby tkuschel on Wed May 23, 2012 6:33 pm

Thank you pollen8, this post was quite long ago;

I had the problem, that my meta texts: meta name="keywords" as well as meta name="description" disappeared after installing the latest JoomFish 2.2.3 version (upgrade from 2.1.5).
I have changed your line - now the global configuration is not overridden when there is an empty value.
-- your suggestion is not implemented yet.
regards,
Thomas
http://www.loytec.com
tkuschel
Newbee
 
Posts: 5
Joined: Tue May 15, 2012 9:19 am
Location: Wien

Re: config issue with 'Overwrite global config values'

Postby alex on Thu May 24, 2012 8:55 pm

Looks like this was lost in the migration to github.

Fixed again:
https://github.com/JoomFish/jf-core/issues/8
JoomFish core team member
Think Network GmbH - strategic consulting and internet services

You need more Joomla Support? May be Open Source Support Desk can help you!
User avatar
alex
Core Member
 
Posts: 1915
Joined: Fri Oct 19, 2007 4:58 pm
Location: Konstanz, Germany


Return to Joom!Fish Tech-Talk

Who is online

Users browsing this forum: No registered users and 1 guest