9239 Commits

Author SHA1 Message Date
Martin Rüegg
1b0700deed
Improve settings handling and add tests (#6270)
* Fix #6266: BaseSettingsManager::deleteAll() does use prefix as wildcard

* Enh #6271: Add input and type checks, as well as strict types to SettingsManager

* Fix #6267 SettingsManager::flushContentContainer() only clears the collection in the current instance, not the underlying cache

* Enh #6272: Always return integer from settings, if value can be converted

* Improve \humhub\libs\BaseSettingsManager::getSerialized() to allow return value be an object and throw an exception on decoding error

* Enh #6270: Add tests for SettingsManager
2023-05-03 09:55:00 +00:00
Yuriy Bakhtin
b034c24fe7
Fix error after publishing of a draft content (#6286) 2023-05-03 11:24:14 +02:00
Yuriy Bakhtin
184c33ad46
Change background color for confirmation of oembed content (#6285)
* Change background color for confirmation of oembed content

* Change background color for confirmation of oembed content
2023-05-03 09:06:04 +00:00
Yuriy Bakhtin
7e391224f7
Hard delete content records on integrity check (#6282) 2023-05-02 10:20:54 +02:00
Yuriy Bakhtin
7dd5c4ec89
Fix hidden menu bar on focus rich text editor (#6279) 2023-05-01 13:16:01 +02:00
yuriimaz
c297826576
Enh #29: AutoStart Tour for new Users (#6249)
* Enh #29: AutoStart Tour for new Users

* Added getIsFirstLogin and setFirstLoginDone methods in Tour module.
Removed selfSetUpdatedBy method from User component.

* Added since 1.15 for new param and methods and var method documented.
Added AutoTourCest acceptance test for check auto tour.

* Changed AutoTourCest acceptance test for check auto tour.
Removed @author for new param.

* Removed author tag for new methods.

* Fixed acceptance test for Auto Tour

* Update CHANGELOG-DEV.md

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2023-04-29 17:40:31 +00:00
yuriimaz
afacdea888
Enh #10: ui.showMore - ReadMore "collapseAt" Default (#6261)
* Enh #10: ui.showMore - ReadMore "collapseAt" Default

* Added migration to create collapsedPostHeight in setting table

* Added null check for collapsedPostHeight in module init

* Deleted collapsedPostHeight param from design settings

* Moved collapsedPostHeight param to the Post module.
Add this change to the changelog.

* Removed unused Yii dependency
2023-04-29 15:43:25 +00:00
Lucas Bartholemy
4efa764e8b Merge branch 'master' into develop 2023-04-28 23:14:13 +02:00
HumHub Translations
6728866935 Enh: Updated Translations (translate.humhub.org) 2023-04-28 18:41:32 +00:00
Lucas Bartholemy
0a92ef5bec
Update CHANGELOG.md 2023-04-28 20:40:29 +02:00
Yuriy Bakhtin
7c5bff3cf3
Fix hidden submit button on edit long code in post/comment content (#6269) 2023-04-28 20:39:59 +02:00
Martin Rüegg
cc37f1b7ef
Clear Module Settings Cache after deleting settings from database (#6190) 2023-04-28 17:07:43 +00:00
Lucas Bartholemy
dcba048dae
Update CHANGELOG.md 2023-04-28 18:52:53 +02:00
Yuriy Bakhtin
ee94ee6a54
Fix broken HMTL in widgets (#6265) 2023-04-28 18:51:48 +02:00
Lucas Bartholemy
07bc8aa593 Merge branch 'master' into develop 2023-04-28 12:44:22 +02:00
Yuriy Bakhtin
43e866772c
Fix date format for columns created_at and updated_at (#6264)
* Fix date format for columns `created_at` and `updated_at`

* Update CHANGELOG.md
2023-04-28 12:43:18 +02:00
Martin Rüegg
a4861469fc
Add json extension as requirement (#6259)
* Add json extension as requirement

* Add pdo extension as requirement

* Update composer dependencies

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 8 installs, 39 updates, 1 removal
  - Removing phpunit/php-token-stream (4.0.4)
  - Upgrading codeception/phpunit-wrapper (8.1.6 => 9.0.9)
  - Upgrading codeception/verify (1.1.0 => 1.5.0)
  - Upgrading firebase/php-jwt (v5.5.1 => v6.4.0)
  - Upgrading guzzlehttp/psr7 (2.4.4 => 2.5.0)
  - Upgrading imagine/imagine (1.3.3 => 1.3.4)
  - Upgrading laminas/laminas-servicemanager (3.15.0 => 3.17.0)
  - Locking nikic/php-parser (v4.15.4)
  - Upgrading npm-asset/blueimp-file-upload (9.24.1 => 9.34.0)
  - Upgrading npm-asset/blueimp-gallery (2.36.0 => 2.44.0)
  - Locking npm-asset/natives (1.1.6)
  - Upgrading npm-asset/select2-bootstrap-theme (0.1.0-beta.4 => 0.1.0-beta.10)
  - Upgrading npm-asset/swiped-events (1.0.9 => 1.1.6)
  - Upgrading phpunit/php-code-coverage (7.0.15 => 9.2.26)
  - Upgrading phpunit/php-file-iterator (2.0.5 => 3.0.6)
  - Locking phpunit/php-invoker (3.1.1)
  - Upgrading phpunit/php-text-template (1.2.1 => 2.0.4)
  - Upgrading phpunit/php-timer (2.1.3 => 5.0.3)
  - Upgrading phpunit/phpunit (8.5.33 => 9.6.7)
  - Downgrading psr/container (2.0.2 => 1.1.2)
  - Upgrading psr/http-client (1.0.1 => 1.0.2)
  - Upgrading psr/http-factory (1.0.1 => 1.0.2)
  - Upgrading psr/http-message (1.0.1 => 1.1)
  - Locking roave/security-advisories (dev-latest 0139f58)
  - Locking sebastian/cli-parser (1.0.1)
  - Locking sebastian/code-unit (1.0.8)
  - Upgrading sebastian/code-unit-reverse-lookup (1.0.2 => 2.0.3)
  - Upgrading sebastian/comparator (3.0.5 => 4.0.8)
  - Locking sebastian/complexity (2.0.2)
  - Upgrading sebastian/diff (3.0.3 => 4.0.4)
  - Upgrading sebastian/environment (4.2.4 => 5.1.5)
  - Upgrading sebastian/exporter (3.1.5 => 4.0.5)
  - Upgrading sebastian/global-state (3.0.2 => 5.0.5)
  - Locking sebastian/lines-of-code (1.0.3)
  - Upgrading sebastian/object-enumerator (3.0.4 => 4.0.4)
  - Upgrading sebastian/object-reflector (1.1.2 => 2.0.4)
  - Upgrading sebastian/recursion-context (3.0.1 => 4.0.5)
  - Upgrading sebastian/resource-operations (2.0.2 => 3.0.3)
  - Upgrading sebastian/type (1.1.4 => 3.2.1)
  - Upgrading sebastian/version (2.0.1 => 3.0.2)
  - Upgrading symfony/console (v5.4.21 => v5.4.22)
  - Upgrading symfony/event-dispatcher (v5.4.21 => v5.4.22)
  - Upgrading symfony/http-client (v5.4.21 => v5.4.22)
  - Upgrading symfony/mailer (v5.4.21 => v5.4.22)
  - Upgrading symfony/process (v5.4.21 => v5.4.22)
  - Upgrading symfony/service-contracts (v1.1.2 => v2.5.2)
  - Upgrading symfony/string (v5.4.21 => v5.4.22)
  - Upgrading yiisoft/yii2-gii (2.2.2 => 2.2.5)
Writing lock file

Package fgrosse/phpasn1 is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/oh-my-smtp-mailer is abandoned, you should avoid using it. Use symfony/mail-pace-mailer instead.

* Update yiisoft/yii2

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading yiisoft/yii2 (dev-master e2b40a2 => dev-master 344ce38)
Writing lock file

* Update node modules

* Fix regression form updating firebase/php-jwt from v5.5.1 to v6.4.0

* Small code improvements without breaking BC
2023-04-28 08:32:42 +00:00
Marc Farré
1c255e4234 Enh #6248: If admins can view all contents, users allowed to manage spaces or users cannot view all content (they should be able) 2023-04-27 23:09:54 +02:00
Marc Farré
0cc4fdd630
Enh #6248: If admins can view all contents, users allowed to manage spaces or users cannot view all content (they should be able) (#6263)
Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2023-04-27 21:07:48 +00:00
Lucas Bartholemy
c8f1995e28 Merge branch 'master' into develop 2023-04-27 23:06:17 +02:00
Yuriy Bakhtin
bc3013c95b
Updated activities to same state as parent record (#6255)
* Updated activities to same state as parent record

* Update CHANGELOG.md

* Fix delete activity test
2023-04-27 17:12:10 +02:00
Gevorg Mansuryan
75e9e3bb28
Enh/right sidebar swipe (#6253)
* Remove Right Sidebar Swipe checkbox

* Remove Right Sidebar Swipe checkbox

* Enh/right sidebar swipe

* Enh/right sidebar swipe
2023-04-27 15:06:14 +00:00
Martin Rüegg
17f15ce17e
Fix #6192: Where Group::getAdminGroupId() would sometimes return int, sometimes string (#6201) 2023-04-27 14:57:45 +00:00
Martin Rüegg
0dcd768475
Improve migration class (#6260)
- Add parameter and return types
- Add/improve PhpDoc
- Add new functions
  - safeAddForeignKeyToUserTable()
  - safeAddForeignKeyUpdatedBy()
  - safeAddForeignKeyCreatedBy()
  - safeAddForeignKeyToUserTable()
  - integerReferenceKey()
  - timestampWithoutAutoUpdate()
2023-04-26 10:31:49 +00:00
Martin Rüegg
937ab74480
Add types to properties (#6199) 2023-04-26 07:19:26 +00:00
Gevorg Mansuryan
9ad7bb3f39
Fix/membership request notification (#6243)
* Cannot delete notification for "join space" request

* Cannot delete notification for "join space" request

* Fix/membership request notification

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2023-04-24 21:00:04 +00:00
Gevorg Mansuryan
25f9a17dd1
Timeout on php yii queue/run executed by command line (#6239)
* Fix #6209: Timeout on php yii queue/run executed by command line

* Fix timeout on php yii queue/run executed by command line

* Timeout on php yii queue/run executed by command line

* Timeout on php yii queue/run executed by command line

* Timeout on php yii queue/run executed by command line

* Timeout on php yii queue/run executed by command line

* Update CHANGELOG.md

* Update CHANGELOG-DEV.md

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2023-04-24 20:37:24 +00:00
Lucas Bartholemy
4948b3f0c3 Merge branch 'master' into develop 2023-04-24 17:18:08 +02:00
Yuriy Bakhtin
460a428b78
Fix event trigger for Content::EVENT_STATE_CHANGED; Implement new ContentActiveRecord->afterStateChange() (#6252)
* Fix event trigger for `Content::EVENT_STATE_CHANGED`

* Update CHANGELOG.md

* Implement new method to handle changing of content active record state
2023-04-24 16:43:39 +02:00
Yuriy Bakhtin
602cf23f95
Fix emulate execution on check readable content (#6251)
* Fix emulate execution on check readable content

* Update CHANGELOG.md

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2023-04-23 14:47:34 +02:00
yuriimaz
ab28f2228c
Minor AuthClient Helper & -Service Cleanups (#6244)
* Fix #1: Test & Release - Registration with LinkedIn

* Removed condition for LinkedIn authorization
2023-04-20 21:58:31 +00:00
Lucas Bartholemy
4f7f869fd8 Merge branch 'master' into develop 2023-04-20 16:53:15 +02:00
HumHub Translations
e79a976369 Enh: Updated Translations (translate.humhub.org) v1.14.0 2023-04-20 16:52:57 +02:00
HumHub Translations
a9429c5a9a Enh: Updated Translations (translate.humhub.org) 2023-04-20 14:49:02 +00:00
Lucas Bartholemy
a0faf2261d
Update CHANGELOG.md 2023-04-20 12:06:00 +02:00
Lucas Bartholemy
3017983ff0
Update CHANGELOG.md 2023-04-20 12:05:43 +02:00
Marc Farré
6438eba79d Update AccountController.php
This bug is also present on the master branch. It should be resolved for Humhub 1.14 and 1.15
2023-04-20 12:03:50 +02:00
Marc Farré
be8ce38fa7
Update AccountController.php (#6246)
This bug is also present on the master branch. It should be resolved for Humhub 1.14 and 1.15
2023-04-20 12:03:10 +02:00
Lucas Bartholemy
4691fa44cd Merge branch 'develop' of github.com:humhub/humhub into develop 2023-04-20 12:01:46 +02:00
Lucas Bartholemy
5a5321a0eb Merge branch 'master' into develop 2023-04-20 12:01:36 +02:00
Martin Rüegg
2c5962a6ae
Feature log migrations (#6238)
* Log errors and exceptions during migration to loggers

Previously, they were only logged to the console.

* Use log category "migration" for all log entries

* Update for Enh #6236
2023-04-17 13:46:56 +00:00
Gevorg Mansuryan
1919946c3e
Add ability to set showAtDashboard in SpaceMembership::addMember method (#6240)
* Add ability to set showAtDashboard in SpaceMembership::addMember method

* Add ability to set showAtDashboard in SpaceMembership::addMember method

* Add ability to set showAtDashboard in SpaceMembership::addMember method
2023-04-17 09:33:18 +00:00
Lucas Bartholemy
4a216b6d0c
Update CHANGELOG.md 2023-04-17 11:19:31 +02:00
Gevorg Mansuryan
93f7174b48
Fixed Error in parseDateValuePHP prevents entering calendar items and… (#6232)
* Fixed Error in parseDateValuePHP prevents entering calendar items and tasks

* Error in parseDateValuePHP prevents entering calendar items and tasks
2023-04-17 11:18:53 +02:00
Marc Farré
79e0a3e706
Fix #6229: Bug on saving forms: Zend OPcache API is restricted by "restrict_api" (#6231) 2023-04-14 16:09:24 +00:00
yuriimaz
ea084b8b03
Fix #6216: Spaces icon in admin menu (#6223)
* Fix #6216: Spaces icon in admin menu

* Added to changelog new item - fix #6216
2023-04-12 08:24:36 +00:00
Lucas Bartholemy
b0d4b50c91
Fix/saas (#6222)
* Fixed Saas Handling in Installer

* Fixed urls
2023-04-05 18:57:19 +02:00
Lucas Bartholemy
d7ac4071e3
Fixed Saas Handling in Installer (#6221)
* Fixed Saas Handling in Installer

* Update CHANGELOG.md
2023-04-05 18:56:29 +02:00
Lucas Bartholemy
b694f599d7 Prepare 1.15-dev 2023-04-04 16:50:26 +02:00
Lucas Bartholemy
2544eb7af2
Update common.php 2023-04-04 16:45:05 +02:00