Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Profile Custom Field Data Gets Lost After First Time Vendor Admin Login. Core Bug? Rate Topic   - - - - -

 
  • apr3455
  • Member
  • Members
  • Join Date: 12-Nov 14
  • 27 posts

Posted 25 February 2016 - 07:27 AM #1

Hello,

 

if a new vendor admin logs into the vendor admin (vendor.php) for the first time, the system wants the vendor admin to change the password. After changing the password all profile custom field data gets lost / cleared. For example we have defined one additional profile field "occupation" under "Profile fields" - the value of this custom fields gets cleared after first time login of vendor admin into the admin area.

 

Why??? Did we found a bug in the core system of cs cart? We have also tested it with a clean installation of CS Cart => same problem!

 

The CS Cart version is: 4.2.2

 

Best regards,

Alex



 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3808 posts

Posted 25 February 2016 - 01:31 PM #2

Hello,

 

if a new vendor admin logs into the vendor admin (vendor.php) for the first time, the system wants the vendor admin to change the password. After changing the password all profile custom field data gets lost / cleared. For example we have defined one additional profile field "occupation" under "Profile fields" - the value of this custom fields gets cleared after first time login of vendor admin into the admin area.

 

Why??? Did we found a bug in the core system of cs cart? We have also tested it with a clean installation of CS Cart => same problem!

 

The CS Cart version is: 4.2.2

 

Best regards,

Alex

 

Please try to replace the following line in the app/functions/fn.users.php file:

$has_permissions = false;

with these ones:

 if ($auth['user_id'] != $user_data['user_id']) {
                $has_permissions = false;
            }

If it does not help please contact us via HelpDesk.


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • apr3455
  • Member
  • Members
  • Join Date: 12-Nov 14
  • 27 posts

Posted 26 February 2016 - 08:38 AM #3

Please try to replace the following line in the app/functions/fn.users.php file:

$has_permissions = false;

with these ones:

 if ($auth['user_id'] != $user_data['user_id']) {
                $has_permissions = false;
            }

If it does not help please contact us via HelpDesk.

 

In fn.users.php there is no such line: "$has_permissions = false;"

 

I want to mention that we dont want the "change password" dialog to disappear on first time vendor admin login, but after changing the password the custom profile field data must not be cleared.

 

Thanks for any further information / help!



 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3808 posts

Posted 26 February 2016 - 01:34 PM #4

In fn.users.php there is no such line: "$has_permissions = false;"

 

I want to mention that we dont want the "change password" dialog to disappear on first time vendor admin login, but after changing the password the custom profile field data must not be cleared.

 

Thanks for any further information / help!

 

In this case we should examine the issue on your server. Please contact us via HelpDesk.


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation