erwin123 Posted July 21, 2017 Share Posted July 21, 2017 I've had several times now that when I try to open een todo list item from the mainpage and I click slightly in the wrong spot and the item disappears. This is really dangerous as these items are important (like a domain that failed to renew). I would love to see that the option of removing these items (its some sort of checkbox but they disappear immediatly) is lost from the mainpage or at the very least that there is a dialog confirming the delete. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 21, 2017 Share Posted July 21, 2017 I never noticed that before! the quick fix would be to modify /modules/widgets/ToDo.php and remove the checkbox from the code... $output .= ' <div class="item"> <div class="due">Due ' . $duedate . '</div> <div> <label> <input type="checkbox" value="' . $id . '"> ' . '<a href="todolist.php?action=edit&id=' . $id . '">' . $title . '</a>' . $status . $assigned . ' </label> </div> </div>'; to... $output .= ' <div class="item"> <div class="due">Due ' . $duedate . '</div> <div> <label>' . '<a href="todolist.php?action=edit&id=' . $id . '">' . $title . '</a>' . $status . $assigned . ' </label> </div> </div>'; clicking on the link should now take you to the specific ToDo page - where you would need to change the status to "Completed" to remove it from the dashboard. ... though bear in mind that the WHMCS updater might replace the widget during a future WHMCS update and restore the old code. 0 Quote Link to comment Share on other sites More sharing options...
erwin123 Posted July 21, 2017 Author Share Posted July 21, 2017 Thanks Brian, I will make the adjustment. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.