HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Current (minor) bugs with SVN ~$3282 (http://www.howtoforge.com/forums/showthread.php?t=57966)

cfoe 17th July 2012 10:37

Current (minor) bugs with SVN ~$3282
 
1. Difference between:
(from dns_soa_list.php)
PHP Code:

$app->uses('listform_actions');
// $app->listform_actions->SQLExtWhere = "access = 'REJECT'";

$app->listform_actions->SQLOrderBy 'ORDER BY origin';
$app->listform_actions->onLoad(); 

and
(from web_domain_list.php)
PHP Code:

$app->load('listform_actions');

$list = new list_action;
$list->SQLExtWhere "type = 'vhost'";
$list->SQLOrderBy 'ORDER BY domain';
$list->onLoad(); 

both is "doing" the same. Which version is preferred?

2. Error on client_edit page:

If you are on the "Limits" page and try to switch to "Address" via the tab (or click on the "limits" tab) ->
output of the "DB::query(INSERT..." in the frontend. The data will successfully be inserted into the db.

Can you reproduce the error?

3. Is the globalsearch looking for domains in the domain module? On my dev machine it does not.

till 17th July 2012 11:46

1) The second form should only be used if the class has to be extended e.g. when a subfunction must be overwritten. In all other cases I would prefer the short form (1).

2) Maybe some fields in your databaseare missing in the database scheme on your test system. have you added the bank account fields that have been added lately?

3) The domain module is not included yet as it gets removed before the 3.0.5 release. The functionality is included in the client module as the function of the domain module is a cleint limit and it should not have been a separate module.

cfoe 17th July 2012 20:56

Quote:

Originally Posted by till (Post 282199)
1) The second form should only be used if the class has to be extended e.g. when a subfunction must be overwritten. In all other cases I would prefer the short form (1).

????:confused:

Quote:

2) Maybe some fields in your databaseare missing in the database scheme on your test system. have you added the bank account fields that have been added lately?
There seems to be something awry on my dev machine.

Quote:

3) The domain module is not included yet as it gets removed before the 3.0.5 release. The functionality is included in the client module as the function of the domain module is a cleint limit and it should not have been a separate module.
Sounds good. Maybe you could consider removing some headlines in the sites module menu by combining some pages. There are so many cats with just one site. For smaller resolutions height is very limited. I often forget that not all users have displays with a 2560x1440 resolution. :cool:

till 18th July 2012 10:45

Quote:

????
In most cases the version from dns_soa_list.php can be used as it does not require to create a new object. But sometimes it is nescessary to create a new object to override subfunctions, in that case the version from web_domain_list.php is better. Both versions have the same functionality, so I dont thint that its nescessary to edit the existing files.

Quote:

Sounds good. Maybe you could consider removing some headlines in the sites module menu by combining some pages. There are so many cats with just one site. For smaller resolutions height is very limited. I often forget that not all users have displays with a 2560x1440 resolution.
I add a feature request for that in the bugtracker.


All times are GMT +2. The time now is 23:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.