소스 검색

bug fix

master
Daniel 10 달 전
부모
커밋
ed45192016
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      angular/src/app/_views/trip/trip-form/trip-form.component.ts
  2. +1
    -0
      httpdocs/src/Entity/Trip.php

+ 4
- 1
angular/src/app/_views/trip/trip-form/trip-form.component.ts 파일 보기

@@ -39,7 +39,10 @@ export class TripFormComponent extends AbstractDataFormComponent<TripJsonld> {
) {
super(
tripForm,
(data: TripJsonld) => this.tripService.tripsPost(data),
(data: TripJsonld) => {
data.completed = false;
return this.tripService.tripsPost(data);
},
(id: string | number, data: TripJsonld) =>
this.tripService.tripsIdPatch(
id.toString(),


+ 1
- 0
httpdocs/src/Entity/Trip.php 파일 보기

@@ -66,6 +66,7 @@ class Trip
$this->endLocation = $endLocation;
$this->startDate = $startDate;
$this->endDate = $endDate;
$this->completed = false;
$this->createdAt = new DateTimeImmutable();
$this->tripLocations = new ArrayCollection();
$this->userTrips = new ArrayCollection();


불러오는 중...
취소
저장