Administrator Employee - Contact Info does not persist

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
vmp
Posts: 99
Joined: Wed Jun 20, 2007 3:41 am

Administrator Employee - Contact Info does not persist

Post by vmp »

My employee login is setup as the application Administrator.

I have noticed that my Branch, Department and Title information does not persist.

Although I have updated it many a time and recieve msg "Form Data has been saved" when I login again to check it does not show.

Kindly advise.......
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

There is a bug that causes the branch/department and title data to be reset if the employee modifies their own contact information or their password in v2.1.0-rc1. It is fixed in v2.1.0-rc2 which is expected to be released this week.
mistermudd
Posts: 34
Joined: Wed Sep 12, 2007 2:50 pm

Post by mistermudd »

I am running 2.1.0-rc3 and I am having the same problem.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

We are unable to replicate this on our end with v2.1.0-rc3. Can you please describe the exact steps that you use to replicate this issue?
mistermudd
Posts: 34
Joined: Wed Sep 12, 2007 2:50 pm

Post by mistermudd »

Whether I attempt to edit via "Employee List > Edit Employee" -or- "Employee Preferences > Edit Employee", an employee of any permission type cannot change their own "Title".

Here is the DEBUG output:


Debug Buffer
============================================================================
Memory Usage: 11719552
----------------------------------------------------------------------------
DEBUG [243]: [Function](): URI: /interface/users/EditUser.php
DEBUG [245]: [Function](): Production: 1
DEBUG [100]: TTDate::setTimeZone(): Setting TimeZone: GMT
DEBUG [497]: Authentication::Check(): Session Name: SessionID
DEBUG [503]: Authentication::Check(): Session ID: fd43c497a6512c689d195b1109119fc2
DEBUG [302]: Validator::stripNonAlphaNumeric(): Alpha Numeric String:fd43c497a6512c689d195b1109119fc2
DEBUG [78]: Authentication::getIdle(): Idle Seconds Allowed: 14400
DEBUG [302]: Validator::stripNonAlphaNumeric(): Alpha Numeric String:fd43c497a6512c689d195b1109119fc2
DEBUG [69]: [Function](): User Authenticated: admin Created Date: 1190060972
DEBUG [1715]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [100]: TTDate::setTimeZone(): Setting TimeZone: PST
DEBUG [129]: TTDate::setDateFormat(): Setting Default Date Format: M-d-Y
DEBUG [143]: TTDate::setTimeFormat(): Setting Default Time Format: G:i
DEBUG [157]: TTDate::setTimeUnitFormat(): Setting Default Time Unit Format: 10
DEBUG [100]: [Function](): Locale Cookie: en_US
DEBUG [235]: TTi18n::getLanguageFromLocale(): Locale: en_US
DEBUG [108]: [Function](): User Preference Language matches cookie!
DEBUG [270]: TTi18n::setLocale(): Attempting to set Locale to: en_US Category: 0 Current Locale:
DEBUG [273]: TTi18n::setLocale(): Attempting to set Locale to: en_US
DEBUG [275]: TTi18n::setLocale(): Failed setting i18n locale: en_US
DEBUG [287]: TTi18n::setLocale(): Setting translator normalized locale to: en_US
DEBUG [305]: TTi18n::setLocale(): Set Locale To: en_US
DEBUG [1715]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [1094]: UserPreferenceFactory::isPreferencesComplete(): User Preferences IS Complete:
DEBUG [136]: [Function](): Station ID Cookie found! a9c494f8beb1e9c1a04c3c68e647cbdd
DEBUG [243]: [Function](): UnRead Messages: 0
DEBUG [67]: [Function](): NOT Running strtotime on Termination date
DEBUG [738]: TTDate::getTimeStampFromSmarty(): Prefix: birth_
DEBUG [776]: TTDate::getTimeStampFromSmarty(): Year: 2007 Month: 09 Day: 16 Hour: 0 Min: 0 Sec: 0
DEBUG [809]: TTDate::getTimeStamp(): - Year: 2007 Month: 09 Day: 16 Hour: 0 Min: 0 Sec: 0
DEBUG [813]: TTDate::getTimeStamp(): Epoch: 1189926000 Date:
DEBUG [83]: [Function](): aCompany ID:
DEBUG [89]: [Function](): Submit!
DEBUG [134]: UserFactory::setCompany(): Company ID: 1
DEBUG [152]: [Function](): Using User Defaults
DEBUG [94]: Validator::inArrayKey(): Key: 10
DEBUG [132]: Validator::isRegEx(): Value: admin RegEx: /^[a-z0-9-_\.@]{1,250}$/i
DEBUG [145]: Validator::isLength(): Value: admin Length: 5 Min: 4 Max: 250
DEBUG [287] Array: UserFactory::isUniqueUserName(): Unique User Name: admin
5

DEBUG [145]: Validator::isLength(): Value: admin Length: 5 Min: 4 Max: 64
DEBUG [132]: Validator::isRegEx(): Value: TimeTrex RegEx: /^[a-zA-Z -\.'|\x7F-\xFF]{1,250}$/iu
DEBUG [145]: Validator::isLength(): Value: TimeTrex Length: 8 Min: 2 Max: 50
DEBUG [132]: Validator::isRegEx(): Value: Admin RegEx: /^[a-zA-Z -\.'|\x7F-\xFF]{1,250}$/iu
DEBUG [145]: Validator::isLength(): Value: Admin Length: 5 Min: 2 Max: 50
DEBUG [94]: Validator::inArrayKey(): Key: 10
DEBUG [132]: Validator::isRegEx(): Value: 169 West Ave J-5 RegEx: /^[a-zA-Z0-9-,_\.'#\ |\x7F-\xFF]{1,250}$/iu
DEBUG [145]: Validator::isLength(): Value: 169 West Ave J-5 Length: 16 Min: 2 Max: 250
DEBUG [132]: Validator::isRegEx(): Value: Lancaster RegEx: /^[a-zA-Z0-9-,_\.'#\ |\x7F-\xFF]{1,250}$/iu
DEBUG [145]: Validator::isLength(): Value: Lancaster Length: 9 Min: 2 Max: 250
DEBUG [94]: Validator::inArrayKey(): Key: US
DEBUG [1072]: UserFactory::setProvince(): Country: US Province: CA
DEBUG [94]: Validator::inArrayKey(): Key: CA
DEBUG [174]: Validator::isPostalCode(): Raw Postal Code: 93534
DEBUG [145]: Validator::isLength(): Value: 93534 Length: 5 Min: 1 Max: 10
DEBUG [294]: Validator::stripNonNumeric(): Numeric String:
DEBUG [294]: Validator::stripNonNumeric(): Numeric String:6619511998
DEBUG [161]: Validator::isPhoneNumber(): Raw Phone: 661-951-1998 Phone: 6619511998
DEBUG [294]: Validator::stripNonNumeric(): Numeric String:
DEBUG [738]: TTDate::getTimeStampFromSmarty(): Prefix: birth_
DEBUG [776]: TTDate::getTimeStampFromSmarty(): Year: 2007 Month: 09 Day: 16 Hour: 0 Min: 0 Sec: 0
DEBUG [809]: TTDate::getTimeStamp(): - Year: 2007 Month: 09 Day: 16 Hour: 0 Min: 0 Sec: 0
DEBUG [813]: TTDate::getTimeStamp(): Epoch: 1189926000 Date:
DEBUG [257]: Validator::isDate(): Raw Date: 1189926000 Converted Value: 1189926000
DEBUG [1386]: UserFactory::setCurrency(): Currency ID: 1
DEBUG [294]: Validator::stripNonNumeric(): Numeric String:0
DEBUG [106]: Validator::isNumeric(): Value:0
DEBUG [667] Array: UserFactory::isUniqueEmployeeNumber(): Unique Job Item: 0
5

DEBUG [756]: UserFactory::setDefaultBranch(): Branch ID: 1
DEBUG [785]: UserFactory::setDefaultDepartment(): Department ID: 3
DEBUG [188]: UserFactory::setGroup(): Group ID: 0
DEBUG [731]: Factory::isValid(): Calling Validate()
DEBUG [714]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [760]: Factory::Save(): Calling preSave()
DEBUG [731]: Factory::isValid(): Calling Validate()
DEBUG [803]: Factory::Save(): Updating...
DEBUG [628]: Factory::getUpdateQuery(): Update
DEBUG [257]: Validator::isDate(): Raw Date: 1190061557 Converted Value: 1190061557
DEBUG [659]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [106]: Validator::isNumeric(): Value:5
DEBUG [94]: Validator::inArrayKey(): Key: 20
DEBUG [145]: Validator::isLength(): Value: users Length: 5 Min: 2 Max: 250
DEBUG [145]: Validator::isLength(): Value: User Information Length: 16 Min: 2 Max: 2000
DEBUG [714]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [760]: Factory::Save(): Calling preSave()
DEBUG [257]: Validator::isDate(): Raw Date: 1190061557 Converted Value: 1190061557
DEBUG [790]: Factory::Save(): Insert ID: 5647
DEBUG [696]: Factory::getInsertQuery(): Insert
DEBUG [724]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [841]: Factory::Save(): Calling postSave()
DEBUG [65]: Factory::removeCache(): Attempting to remove cache: 5
DEBUG [71]: Factory::removeCache(): Removing cache: 5 Group Id: users
DEBUG [1760]: UserFactory::postSave(): Permission Group is set...
DEBUG [1765]: UserFactory::postSave(): Already assigned to a Permission Group...
DEBUG [1812]: UserFactory::postSave(): Pay Period Schedule is set...
DEBUG [1838]: UserFactory::postSave(): Not assigned to ANY Pay Period Schedule...
DEBUG [406]: Validator::Error(): Validation Error: Label: pay_period_schedule Msg: Pay Period Schedule is invalid
DEBUG [61] Array: PayPeriodScheduleUserFactory::isUniqueUser(): Unique User ID:

DEBUG [385] Array: Validator::isValid(): Errors
Array
(
[pay_period_schedule] => Array
(
[0] => Pay Period Schedule is invalid
)

)

DEBUG [1856]: UserFactory::postSave(): Policy Group is set...
DEBUG [1882]: UserFactory::postSave(): Not assigned to ANY Policy Group...
DEBUG [406]: Validator::Error(): Validation Error: Label: policy_group Msg: Policy Group is invalid
DEBUG [64] Array: PolicyGroupUserFactory::isUniqueUser(): Unique User ID:

DEBUG [385] Array: Validator::isValid(): Errors
Array
(
[policy_group] => Array
(
[0] => Policy Group is invalid
)

)

DEBUG [724]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [382]: [Function](): Inserted ID: 5
DEBUG [35]: Redirect::page(): Redirect URL: EditUser.php?id=5&saved_search_id=&company_id=&data_saved=1
============================================================================
============================================================================
PROFILER OUTPUT
============================================================================
Calls Time Routine
-----------------------------------------------------------------------------
1 65.1941 ms (6.18 %) Authentication::Check()
1 53.8270 ms (5.11 %) Interface.inc - Check for Exceptions
1 65.3441 ms (6.20 %) Interface.inc - Check for UNREAD messages...
4 9.1681 ms (0.87 %) getEmptyRecordSet()
1 38.6779 ms (3.67 %) getPermissionHierarchyChildrenByCompanyIdAndUserId
1 566.6568 ms (53.75 %) unprofiled

255.4607 ms (24.23 %) Missed
============================================================================
1054.3289 ms (100.00 %) OVERALL TIME
============================================================================
v
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Whether I attempt to edit via "Employee List > Edit Employee" -or- "Employee Preferences > Edit Employee", an employee of any permission type cannot change their own "Title".
What do you mean by "cannot change their own title"?

Normally regular employees don't have access to change their title.

Can you please describe in more detail what it is that is happening, and what is you expect to happen? Is TimeTrex returning an error? Are you changing an employees title to something, pressing the submit button, then seeing that the title didn't really change at all?
mistermudd
Posts: 34
Joined: Wed Sep 12, 2007 2:50 pm

Post by mistermudd »

I have entered 2 types of employees:

Administrators, and Supervisors of All Employees (for testing).

When I log into either account, and I go to change the "Title" portion in the "Employee List > Edit Employee" -or- "Employee Preferences > Edit Employee" page for the employee whom I am logged in as, after clicking "Submit", it says on top that form data has been saved, but the title goes back to what it was previously.

I dont know how much more plainly I can put it.

(And no, there is not an error)
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Thanks, that was enough information for us to replicate the issue on our end. It will be fixed in the next version of TimeTrex.

The key was that it only happens if you are editing the employee that you are currently logged in as.
Locked