mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-13 02:04:58 +00:00
Compare commits
5 Commits
389-displa
...
392-newsit
Author | SHA1 | Date | |
---|---|---|---|
|
9158e33854 | ||
|
af74f7860b | ||
bdf1cf71ba
|
|||
5ee8a6bc82 | |||
47cf83ef93
|
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
|
@@ -46,7 +46,7 @@ stages:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
stage: Composer install
|
stage: Composer install
|
||||||
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
|
image: chill/base-image:8.3-edge
|
||||||
before_script:
|
before_script:
|
||||||
- composer config -g cache-dir "$(pwd)/.cache"
|
- composer config -g cache-dir "$(pwd)/.cache"
|
||||||
script:
|
script:
|
||||||
@@ -61,7 +61,7 @@ build:
|
|||||||
|
|
||||||
code_style:
|
code_style:
|
||||||
stage: Tests
|
stage: Tests
|
||||||
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
|
image: chill/base-image:8.3-edge
|
||||||
script:
|
script:
|
||||||
- php-cs-fixer fix --dry-run -v --show-progress=none
|
- php-cs-fixer fix --dry-run -v --show-progress=none
|
||||||
cache:
|
cache:
|
||||||
@@ -74,7 +74,7 @@ code_style:
|
|||||||
|
|
||||||
phpstan_tests:
|
phpstan_tests:
|
||||||
stage: Tests
|
stage: Tests
|
||||||
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
|
image: chill/base-image:8.3-edge
|
||||||
variables:
|
variables:
|
||||||
COMPOSER_MEMORY_LIMIT: 3G
|
COMPOSER_MEMORY_LIMIT: 3G
|
||||||
before_script:
|
before_script:
|
||||||
@@ -91,7 +91,7 @@ phpstan_tests:
|
|||||||
|
|
||||||
rector_tests:
|
rector_tests:
|
||||||
stage: Tests
|
stage: Tests
|
||||||
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
|
image: chill/base-image:8.3-edge
|
||||||
before_script:
|
before_script:
|
||||||
- bin/console cache:clear --env=dev
|
- bin/console cache:clear --env=dev
|
||||||
script:
|
script:
|
||||||
@@ -132,7 +132,7 @@ lint:
|
|||||||
|
|
||||||
unit_tests:
|
unit_tests:
|
||||||
stage: Tests
|
stage: Tests
|
||||||
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
|
image: chill/base-image:8.3-edge
|
||||||
variables:
|
variables:
|
||||||
COMPOSER_MEMORY_LIMIT: 3G
|
COMPOSER_MEMORY_LIMIT: 3G
|
||||||
before_script:
|
before_script:
|
||||||
|
@@ -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
|
||||||
|
@@ -2,10 +2,10 @@
|
|||||||
<span class="chill-entity entity-user">
|
<span class="chill-entity entity-user">
|
||||||
{{ user.label }}
|
{{ user.label }}
|
||||||
<span class="user-job" v-if="user.user_job !== null"
|
<span class="user-job" v-if="user.user_job !== null"
|
||||||
>({{ localizeString(user.user_job.label) }})</span
|
> ({{ localizeString(user.user_job.label) }})</span
|
||||||
>
|
>
|
||||||
<span class="main-scope" v-if="user.main_scope !== null">
|
<span class="main-scope" v-if="user.main_scope !== null"
|
||||||
({{ localizeString(user.main_scope.name) }})</span
|
> ({{ localizeString(user.main_scope.name) }})</span
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-if="user.isAbsent"
|
v-if="user.isAbsent"
|
||||||
@@ -22,8 +22,8 @@ import { localizeString } from "ChillMainAssets/lib/localizationHelper/localizat
|
|||||||
export default {
|
export default {
|
||||||
name: "UserRenderBoxBadge",
|
name: "UserRenderBoxBadge",
|
||||||
methods: {
|
methods: {
|
||||||
localizeString(translatableString, locale) {
|
localizeString(label) {
|
||||||
return localizeString(translatableString, locale);
|
return localizeString(label);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
props: ["user"],
|
props: ["user"],
|
||||||
|
Reference in New Issue
Block a user