String "My Dashboard" hardcoded and misused as anchor
As already mentioned in Issue #897 (closed): "Report charts can be pinned and will need dashboard. So at-least one dashboard per user is required (My Dashboard) is an anchor. "
In "modules/Users/models/Record.php" line 165 and "layouts/v7/modules/Vtiger/resources/DashBoard.js" line 808 the String "My Dashboard" is hardcoded and used as an anchor.
Problem:
- No Renaming of Dashboard "My Dashboard" possible
- No Translation possible.
Solution:
Field "tabname" in "vtiger_dashboard_tabs" table is not set to unique, the identifier is the field "id". Not "My Dashboard" has to be the default for an user but the record in table "tiger_dashboard_tabs" with a certain "id", the "userid" of the actual user and the field "isdefault" set to 1.