dashboard
dashboard copied to clipboard
PostgreSQL changes to allow saving and removing of widgets
Hi,
I needed to perform the following code changes to latest dashboard to enable saving and removing of widgets in dashboard.
These are for PostgreSQL 10.10, PHP 7.2.15, Nextcloud 17.0.0 Beta 4 and Dashboard 6.0.0 from nextcloud app store
in lib/Db/SettingsRequest.php: change $qb->set('enabled', $qb->createNamedParameter(false)); to $qb->set('enabled', $qb->createNamedParameter('false'));
in lib/Db/SettingsRequestBuilder.php: change ->setEnabled(($data['enabled'] === '1') ? true : false); to ->setEnabled(($data['enabled'] === true) ? true : false);
Now the board restores its state correctly! Thank you VERY much!
PostgreSQL 12.2, PHP 7.4.3, Nextcloud 18.0.1.3, Dashboard 6.0.0 from github