I first installed Time Tracker in 2017 and our company has really enjoyed the product.
I recently moved from GoDaddy to our own hosted server with a database backup and code/Db upgrade. With a few minor tweaks everything is running great...with one exception. I cannot get the "Week Total" to display on the mobile site. The tag displays...but not the data. It works well on the desktop version. My users really like this feature and I am stumped!
Any suggestions are welcome! Thanks!
Successful Upgrade-"Week Total" on Mobile Page
Re: Successful Upgrade-"Week Total" on Mobile Page
The "Day Total" still shows up...but not the Week Total. This is only affected on the mobile time.php page.
Re: Successful Upgrade-"Week Total" on Mobile Page
Was it there, ever? If you want it there, it is rather trivial to add. See mobile/time.php how day_total is assigned to a smarty template.
Code: Select all
$smarty->assign('day_total', ttTimeHelper::getTimeForDay($cl_date));
Code: Select all
$smarty->assign('week_total', ttTimeHelper::getTimeForWeek($cl_date));
Code: Select all
<tr>
<td align="right">{$i18n.label.week_total}:</td>
<td>{$week_total}</td>
</tr>
Re: Successful Upgrade-"Week Total" on Mobile Page
Just what I needed!
I had it configured on my last hosted site but forgot about the smarty assign for this page with the upgrade and move... I appreciate the assist!
I had it configured on my last hosted site but forgot about the smarty assign for this page with the upgrade and move... I appreciate the assist!
Re: Successful Upgrade-"Week Total" on Mobile Page
Correction: It should be
in mobile/time.php as $cl_date will get you only the current week working.
Code: Select all
$smarty->assign('week_total', ttTimeHelper::getTimeForWeek($selected_date));