Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001265 [SysCP] Adminpanel crash always 2009-08-09 12:28 2009-09-20 10:37
Reporter sacktreter View Status public  
Assigned To Flo
Priority normal Resolution fixed  
Status resolved   Product Version 1.4.2.1
Summary 0001265: only one customer login can be created, no lastaccountnumber value
Description I think there is a problem in the svn branch (Revision 2728). In the database table "panel_settings" there is an entry named "lastaccountnumber" and "lastguid", but i didnt found where this values will be loaded.
I cannot create more than one customer because this value will always be 1 and the next user will create the error message, that the path ".../web1" still exists.
The function loadSettings from /lib/functions/settings/function.loadSettings.php did not read the value from this settings because in the file /actions/admin/settings/120.system.php has no part with this entry. I fixed this for me an added this lines
[code]
        'system_lastaccountnumber' => array(
          'settinggroup' => 'system',
          'varname' => 'lastaccountnumber',
          'type' => 'int',
          'int_max' => 65535,
          'default' => 0,
          'save_method' => 'storeSettingField',
          ),
        'system_lastguid' => array(
          'settinggroup' => 'system',
          'varname' => 'lastguid',
          'type' => 'int',
          'int_max' => 65535,
          'default' => 9999,
          'save_method' => 'storeSettingField',
          ),
[/code]
Now the value $settings['system']['lastaccountnumber'] is not empty, and the line in the admin_customers.php "$accountnumber = intval($settings['system']['lastaccountnumber']) + 1;" will worked now. Is this correct?
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000437)
Flo (administrator)
2009-09-20 10:37

Fixed as of revision 2729

No SVN - commits yet

- Issue History
Date Modified Username Field Change
2009-08-09 12:28 sacktreter New Issue
2009-09-20 10:33 Flo Relationship added has duplicate 0001264
2009-09-20 10:33 Flo Status new => assigned
2009-09-20 10:33 Flo Assigned To => Flo
2009-09-20 10:37 Flo Note Added: 0000437
2009-09-20 10:37 Flo Status assigned => resolved
2009-09-20 10:37 Flo Resolution open => fixed
Footer