Merge branch 'issue-9' into 'develop'
fix: 🐛 delete the shelf on schema.json + settings logo was not correctly saved in db
See merge request ldc-web/projets/showroom/showroom-bo!12
This commit is contained in:
commit
64414fb2fa
3 changed files with 2 additions and 12 deletions
|
|
@ -67,7 +67,7 @@ class Settings extends Model
|
|||
// * TRANSFORMATIONS
|
||||
/** @phpstan-ignore-next-line */
|
||||
if ($model->logo instanceof UploadedFile) {
|
||||
ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model);
|
||||
$model->logo = ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model);
|
||||
}
|
||||
});
|
||||
static::created(function (self $model) {
|
||||
|
|
@ -77,7 +77,7 @@ class Settings extends Model
|
|||
// * TRANSFORMATIONS
|
||||
/** @phpstan-ignore-next-line */
|
||||
if ($model->logo instanceof UploadedFile) {
|
||||
ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model);
|
||||
$model->logo = ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model);
|
||||
}
|
||||
});
|
||||
static::updated(function (self $model) {
|
||||
|
|
|
|||
|
|
@ -42,10 +42,6 @@
|
|||
"description": "Couleur de la marque",
|
||||
"$ref": "#/$defs/hexcolor"
|
||||
},
|
||||
"shelf": {
|
||||
"description": "Les enfant sont rendus sur un étagere.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"status": {
|
||||
"description": "Visible ? (présent dans l'export).",
|
||||
"type": "boolean"
|
||||
|
|
@ -81,7 +77,6 @@
|
|||
"name",
|
||||
"slug",
|
||||
"color",
|
||||
"shelf",
|
||||
"status",
|
||||
"picture",
|
||||
"created_at",
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@
|
|||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"shelf": {
|
||||
"description": "Les enfant sont rendus sur un étagere.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"status": {
|
||||
"description": "Visible ? (présent dans l'export).",
|
||||
"type": "boolean"
|
||||
|
|
@ -103,7 +99,6 @@
|
|||
"slug",
|
||||
"picture",
|
||||
"order",
|
||||
"shelf",
|
||||
"status",
|
||||
"brand_id",
|
||||
"font_id",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue