cloning of dashboards fail if orignal dashboard name is bigger then 24 characters #26
Closed
Description
the cloning of dashboards fail if orignal dashboard name is bigger then 24 characters because of this line here : https://github.com/emoncms/dashboard/blob/master/dashboard_model.php#L52
it doesn't take into account the max length of the name column (which currently is 30) in the database and just blindly adds " clone" to the name. so if your dashboard name is greater then 24 characters for example as in my case 26 characters from "Smart plug6 Microgolf oven" the insert sql statement fails with Data too long for column 'name' at row 1.
not sure how to solve it but perhaps the original name can be shortened if the orignal name exceeds max size - 6 characters (" clone" is 6 characters).
Metadata
Assignees
Labels
No labels