humhub/MIGRATE-DEV.md
Lucas Bartholemy b9a4b11e7a
Migrated Tag Logic into ContentTagService (#6079)
* Moved Tag logic into service class

* Fixed wrong condition

* Fixed typo

* Fixed content access

* Added deprecated methods

* Updated Changelog
2023-06-29 18:31:08 +02:00

1.1 KiB

Module Migration Guide

See humhub/documentation::docs/develop/modules-migrate.md for full version.

Version 1.15 (Unreleased)

Behaviour change

  • \humhub\libs\BaseSettingsManager::deleteAll() no longer uses the $prefix parameter as a full wildcard, but actually as a prefix. Use $prefix = '%pattern%' to get the old behaviour. Or use $parameter = '%suffix' if you want to match against the end of the names.
  • \humhub\libs\BaseSettingsManager::get() now returns a pure int in case the (trimmed) value can be converted
  • New PolymorphicRelation::getObjectModel(): should replace get_class()
  • Removed deprecated javascript method setModalLoader()
  • Javascript CSP Nonces are now required and enabled by default! See: https://docs.humhub.org/docs/develop/javascript/

Deprecations

  • Content::addTags() and Content::addTag() are now deprecated. Use ContentTagService instead.

Type restrictions

  • \humhub\libs\BaseSettingsManager and its child classes on fields, method parameters, & return types