Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

PostgreSQL changes to allow saving and removing of widgets #57

Open
demom opened this issue Sep 11, 2019 · 1 comment
Open

PostgreSQL changes to allow saving and removing of widgets #57

demom opened this issue Sep 11, 2019 · 1 comment

Comments

@demom
Copy link

demom commented Sep 11, 2019

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

@s-rosenfeld
Copy link

s-rosenfeld commented Mar 5, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants