mirror of
https://github.com/humhub/humhub.git
synced 2025-03-11 02:31:03 +01:00
Enh: When moving a content from a container to another, prevent updat… (#6986)
* Enh: When moving a content from a container to another, prevent updating the content dates to keep the stream sort as it was * Add PR ID to changelog
This commit is contained in:
parent
0dab6f67f0
commit
e637315392
@ -20,6 +20,7 @@ HumHub Changelog
|
||||
- Fix #6977: Index sub comments for searching
|
||||
- Fix #6978: Fix module enabling from marketplace
|
||||
- Enh #6984: In forms, change checkbox style to match other input types
|
||||
- Enh #6986: When moving a content from a container to another, prevent updating the content dates to keep the stream sort as it was
|
||||
|
||||
1.16.0-beta.2 (April 9, 2024)
|
||||
-----------------------------
|
||||
|
@ -630,7 +630,7 @@ class Content extends ActiveRecord implements Movable, ContentOwner, Archiveable
|
||||
if ($move === true) {
|
||||
static::getDb()->transaction(function ($db) use ($container) {
|
||||
$this->setContainer($container);
|
||||
if ($this->save()) {
|
||||
if ($this->updateAttributes(['contentcontainer_id', 'visibility'])) {
|
||||
ContentTag::deleteContentRelations($this, false);
|
||||
$model = $this->getModel();
|
||||
$model->populateRelation('content', $this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user