dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

PostgreSQL changes to allow saving and removing of widgets

Open demom opened this issue 5 years ago • 1 comments

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);

demom avatar Sep 11 '19 06:09 demom

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

s-rosenfeld avatar Mar 05 '20 11:03 s-rosenfeld