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

PostgreSQL changes to allow saving and removing of widgets #57

Description

@demom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions