mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-10 07:19:42 +00:00
Compare commits
3 Commits
fix-admin-
...
392-newsit
Author | SHA1 | Date | |
---|---|---|---|
|
9158e33854 | ||
|
af74f7860b | ||
bdf1cf71ba
|
7
.changes/unreleased/Fixed-20250619-170142.yaml
Normal file
7
.changes/unreleased/Fixed-20250619-170142.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: |
|
||||||
|
Allow null and cast as string to setContent method for NewsItem
|
||||||
|
time: 2025-06-19T17:01:42.125730402+02:00
|
||||||
|
custom:
|
||||||
|
Issue: "392"
|
||||||
|
SchemaChange: No schema change
|
@@ -70,9 +70,9 @@ class NewsItem implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
return $this->content;
|
return $this->content;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setContent(string $content): void
|
public function setContent(?string $content): void
|
||||||
{
|
{
|
||||||
$this->content = $content;
|
$this->content = (string) $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStartDate(): ?\DateTimeImmutable
|
public function getStartDate(): ?\DateTimeImmutable
|
||||||
|
@@ -22,8 +22,8 @@ import { localizeString } from "ChillMainAssets/lib/localizationHelper/localizat
|
|||||||
export default {
|
export default {
|
||||||
name: "UserRenderBoxBadge",
|
name: "UserRenderBoxBadge",
|
||||||
methods: {
|
methods: {
|
||||||
localizeString() {
|
localizeString(label) {
|
||||||
return localizeString;
|
return localizeString(label);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
props: ["user"],
|
props: ["user"],
|
||||||
|
Reference in New Issue
Block a user