Hello,
I’m trying to change a specific dashlet so it isn’t showing "My … "
I’ve found in DashletGeneric.php changing line 88 helps (universally);
public $myItemsOnly = false;
But I’m struggling to then apply this change to a single Dashlet.
Any ideas?
Thanks, Mike
pgr
28 September 2021 09:48
2
I think you don’t need to go into code for this, the Dashlet properties normally have a checkbox where you can toggle “My items”.
Hey pgr
Sorry, I should have clarified, I’m looking to do it in the code so that I don’t have to update each staff members home individually.
Thanks, Mike
pgr
29 September 2021 14:40
4
One way to do that is to go through every relevant row in user_preferences and change the settings (which are just Base64-encoded JSON).
1 Like
Ah yes that’s quite an effective method indeed.
Now all I need is little script that runs frequently to copy the database value from my account to all the users.