From af2eca0d03d534e7e0c9e825c90eb83a162191f4 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 4 Jan 2022 14:37:16 +0100 Subject: [PATCH 01/24] Change accompanyingCourse Resources comment by a string --- .../Entity/AccompanyingPeriod/Resource.php | 11 +++--- .../migrations/Version20220104133334.php | 35 +++++++++++++++++++ 2 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php index a11dc9b3d..c7285a7b0 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php @@ -44,9 +44,10 @@ class Resource private ?AccompanyingPeriod $accompanyingPeriod = null; /** - * @ORM\ManyToOne(targetEntity=Comment::class) + * @ORM\Column(type="text", nullable=true) + * @Groups({"read", "write"}) */ - private $comment; + private string $comment = ''; /** * @ORM\Id @@ -75,7 +76,7 @@ class Resource return $this->accompanyingPeriod; } - public function getComment(): ?Comment + public function getComment(): ?string { return $this->comment; } @@ -111,9 +112,9 @@ class Resource return $this; } - public function setComment(?Comment $comment): self + public function setComment(?string $comment = null): self { - $this->comment = $comment; + $this->comment = (string) $comment; return $this; } diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php b/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php new file mode 100644 index 000000000..23c2808c0 --- /dev/null +++ b/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php @@ -0,0 +1,35 @@ +addSql('ALTER TABLE chill_person_accompanying_period_resource DROP CONSTRAINT fk_dc78989ff8697d13'); + $this->addSql('DROP INDEX idx_dc78989ff8697d13'); + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD comment TEXT DEFAULT NULL'); + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource DROP comment_id'); + } + + public function down(Schema $schema): void + { + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD comment_id INT DEFAULT NULL'); + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource DROP comment'); + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD CONSTRAINT fk_dc78989ff8697d13 FOREIGN KEY (comment_id) REFERENCES chill_person_accompanying_period_comment (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('CREATE INDEX idx_dc78989ff8697d13 ON chill_person_accompanying_period_resource (comment_id)'); + } +} From 4f1540c54159da45353b940596dd19070155e8df Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 4 Jan 2022 19:37:27 +0100 Subject: [PATCH 02/24] add a patch resource api endpoint (wip) --- .../ChillPersonExtension.php | 19 +++++++ .../Entity/AccompanyingPeriod/Resource.php | 2 +- .../vuejs/AccompanyingCourse/store/index.js | 17 +++++++ .../AccompanyingPeriodResourceNormalizer.php | 9 ++++ .../ChillPersonBundle/chill.api.specs.yaml | 49 ++++++++++++++++++- 5 files changed, 94 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php index 000720a7f..c8061195b 100644 --- a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php +++ b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php @@ -413,6 +413,25 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac ], ], ], + [ + 'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\Resource::class, + 'name' => 'accompanying_period_resource', + 'base_path' => '/api/1.0/person/accompanying-period/resource', + 'base_role' => 'ROLE_USER', + 'actions' => [ + '_entity' => [ + 'methods' => [ + Request::METHOD_GET => false, + Request::METHOD_PATCH => true, + Request::METHOD_HEAD => false, + Request::METHOD_DELETE => false, + ], + 'roles' => [ + //Request::METHOD_PATCH => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE + ], + ], + ], + ], [ 'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\Origin::class, 'name' => 'accompanying_period_origin', diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php index c7285a7b0..51ed4bb63 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php @@ -47,7 +47,7 @@ class Resource * @ORM\Column(type="text", nullable=true) * @Groups({"read", "write"}) */ - private string $comment = ''; + private ?string $comment = ''; /** * @ORM\Id diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index d092adb0b..2acf3b749 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -353,6 +353,23 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise]) throw error; }) }, + patchResource({ commit }, payload) { + const body = { type: "accompanying_period_resource" }; + body['resource'] = { + type: payload.result.type, + id: payload.result.id + }; + const url = `/api/1.0/person/accompanying-course/resource/${id}.json`; + + return makeFetch('PATCH', url, body) + .then((response) => { + commit('patchResource', response); + }) + .catch((error) => { + commit('catchError', error); + throw error; + }) + }, /** * On The Fly */ diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php index cb883542a..bcce13321 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php @@ -38,6 +38,15 @@ class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface $this->repository = $repository; } + public function normalize($resource, $format = null, array $context = []) + { + return [ + 'type' => 'accompanying_period_resource', + 'id' => $resource->getId(), + 'comment' => $resource->getComment() + ]; + } + public function denormalize($data, $type, $format = null, array $context = []) { $resource = $this->extractObjectToPopulate($type, $context); diff --git a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml index 218904e5e..90228492c 100644 --- a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml +++ b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml @@ -752,7 +752,6 @@ paths: resource: type: thirdparty id: 100 - responses: 401: description: "Unauthorized" @@ -1234,6 +1233,54 @@ paths: 404: description: "Not found" + /1.0/person/accompanying-period/resource/{id}.json: + patch: + tags: + - accompanying-course-resource + summary: "Alter the resource" + parameters: + - name: id + in: path + required: true + description: The resource's id + schema: + type: integer + format: integer + minimum: 1 + requestBody: + description: "A resource" + required: true + content: + application/json: + schema: + type: object + properties: + type: + type: string + enum: + - "accompanying_period_resource" + #id: + # type: integer + comment: + type: string + required: + - type + examples: + Set the resource comment: + value: + type: accompanying_period_resource + #id: 0 + comment: my judicious comment + responses: + 401: + description: "Unauthorized" + 404: + description: "Not found" + 200: + description: "OK" + 422: + description: "object with validation errors" + /1.0/person/household.json: get: tags: From 2c4d06371c859284771dc707dc3475efb27afdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 10 Jan 2022 23:08:23 +0100 Subject: [PATCH 03/24] AccompanyingPeriodResource: fix deserialization + code style --- .../CRUD/Controller/ApiController.php | 5 +- .../ChillPersonExtension.php | 3 +- .../Entity/AccompanyingPeriod/Resource.php | 6 ++- .../AccompanyingPeriodResourceVoter.php | 46 +++++++++++++++++ .../AccompanyingPeriodResourceNormalizer.php | 22 ++++---- .../Normalizer/ResourceJsonNormalizerTest.php | 51 +++++++++++++++++++ .../config/services/security.yaml | 9 ++++ .../migrations/Version20220104133334.php | 23 ++++++--- 8 files changed, 143 insertions(+), 22 deletions(-) create mode 100644 src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php create mode 100644 src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/ResourceJsonNormalizerTest.php diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php index cfbe811fa..89125b67f 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php @@ -162,7 +162,7 @@ class ApiController extends AbstractCRUDController } catch (NotEncodableValueException $e) { throw new BadRequestException('invalid json', 400, $e); } - + dump($entity); $errors = $this->validate($action, $request, $_format, $entity); $response = $this->onAfterValidation($action, $request, $_format, $entity, $errors); @@ -177,7 +177,7 @@ class ApiController extends AbstractCRUDController return $response; } - + dump('before flush'); $this->getDoctrine()->getManager()->flush(); $response = $this->onAfterFlush($action, $request, $_format, $entity, $errors); @@ -351,6 +351,7 @@ class ApiController extends AbstractCRUDController $default, $this->getContextForSerialization($action, $request, $_format, $entity) ); + dump($context); return $this->getSerializer()->deserialize($request->getContent(), $this->getEntityClass(), $_format, $context); } diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php index c8061195b..fb73753f0 100644 --- a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php +++ b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php @@ -425,10 +425,11 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac Request::METHOD_PATCH => true, Request::METHOD_HEAD => false, Request::METHOD_DELETE => false, - ], + ], /* 'roles' => [ //Request::METHOD_PATCH => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE ], + */ ], ], ], diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php index 51ed4bb63..8f84f319a 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Resource.php @@ -20,6 +20,8 @@ use Symfony\Component\Serializer\Annotation\Groups; use UnexpectedValueException; /** + * **About denormalization**: this operation is operated by @see{AccompanyingPeriodResourdeNormalizer}. + * * @ORM\Entity * @ORM\Table( * name="chill_person_accompanying_period_resource", @@ -45,7 +47,7 @@ class Resource /** * @ORM\Column(type="text", nullable=true) - * @Groups({"read", "write"}) + * @Groups({"read"}) */ private ?string $comment = ''; @@ -93,7 +95,7 @@ class Resource /** * @return Person|ThirdParty - * @Groups({"read", "write"}) + * @Groups({"read"}) */ public function getResource() { diff --git a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php new file mode 100644 index 000000000..e27a6a8bb --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php @@ -0,0 +1,46 @@ +accessDecisionManager->decide( + $token, + AccompanyingPeriodVoter::EDIT, + $subject->getAccompanyingPeriod() + ); + + default: + throw new UnexpectedValueException("attribute not supported: {$attribute}"); + } + } +} diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php index bcce13321..7ab284e44 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php @@ -38,15 +38,6 @@ class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface $this->repository = $repository; } - public function normalize($resource, $format = null, array $context = []) - { - return [ - 'type' => 'accompanying_period_resource', - 'id' => $resource->getId(), - 'comment' => $resource->getComment() - ]; - } - public function denormalize($data, $type, $format = null, array $context = []) { $resource = $this->extractObjectToPopulate($type, $context); @@ -93,9 +84,22 @@ class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface $resource->setResource($res); } + if (array_key_exists('comment', $data)) { + $resource->setComment($data['comment']); + } + return $resource; } + public function normalize($resource, $format = null, array $context = []) + { + return [ + 'type' => 'accompanying_period_resource', + 'id' => $resource->getId(), + 'comment' => $resource->getComment(), + ]; + } + public function supportsDenormalization($data, $type, $format = null) { return Resource::class === $type; diff --git a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/ResourceJsonNormalizerTest.php b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/ResourceJsonNormalizerTest.php new file mode 100644 index 000000000..4d2af31bf --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/ResourceJsonNormalizerTest.php @@ -0,0 +1,51 @@ +denormalizer = self::$container->get(DenormalizerInterface::class); + } + + public function testDenormalize() + { + $resource = new Resource(); + + $context = [ + AbstractNormalizer::GROUPS => ['write'], + AbstractNormalizer::OBJECT_TO_POPULATE => $resource, + ]; + + $json = [ + 'comment' => 'bloup', + 'type' => 'accompanying_period_resource', + ]; + + $resource = $this->denormalizer->denormalize($json, Resource::class, 'json', $context); + + $this->assertEquals('bloup', $resource->getComment()); + } +} diff --git a/src/Bundle/ChillPersonBundle/config/services/security.yaml b/src/Bundle/ChillPersonBundle/config/services/security.yaml index 1d88a0be2..f54d4cdfb 100644 --- a/src/Bundle/ChillPersonBundle/config/services/security.yaml +++ b/src/Bundle/ChillPersonBundle/config/services/security.yaml @@ -1,6 +1,7 @@ services: chill.person.security.authorization.person: autowire: true + autoconfigure: true class: Chill\PersonBundle\Security\Authorization\PersonVoter tags: - { name: security.voter } @@ -8,11 +9,19 @@ services: Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter: autowire: true + autoconfigure: true tags: - { name: security.voter } - { name: chill.role } Chill\PersonBundle\Security\Authorization\AccompanyingPeriodCommentVoter: autowire: true + autoconfigure: true + tags: + - { name: security.voter } + + Chill\PersonBundle\Security\Authorization\AccompanyingPeriodResourceVoter: + autowire: true + autoconfigure: true tags: - { name: security.voter } diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php b/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php index 23c2808c0..ca65f8c1e 100644 --- a/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20220104133334.php @@ -1,5 +1,12 @@ addSql('ALTER TABLE chill_person_accompanying_period_resource ADD comment_id INT DEFAULT NULL'); + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource DROP comment'); + $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD CONSTRAINT fk_dc78989ff8697d13 FOREIGN KEY (comment_id) REFERENCES chill_person_accompanying_period_comment (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('CREATE INDEX idx_dc78989ff8697d13 ON chill_person_accompanying_period_resource (comment_id)'); + } + public function getDescription(): string { return 'Replace accompanyingCourse Resources comment by a string'; @@ -24,12 +39,4 @@ final class Version20220104133334 extends AbstractMigration $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD comment TEXT DEFAULT NULL'); $this->addSql('ALTER TABLE chill_person_accompanying_period_resource DROP comment_id'); } - - public function down(Schema $schema): void - { - $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD comment_id INT DEFAULT NULL'); - $this->addSql('ALTER TABLE chill_person_accompanying_period_resource DROP comment'); - $this->addSql('ALTER TABLE chill_person_accompanying_period_resource ADD CONSTRAINT fk_dc78989ff8697d13 FOREIGN KEY (comment_id) REFERENCES chill_person_accompanying_period_comment (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('CREATE INDEX idx_dc78989ff8697d13 ON chill_person_accompanying_period_resource (comment_id)'); - } } From 7564c2fde1734577e74cb01665b418c33994a7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 10 Jan 2022 23:12:52 +0100 Subject: [PATCH 04/24] AccompanyingPeriodResource: add ACL --- .../DependencyInjection/ChillPersonExtension.php | 8 ++++---- .../Authorization/AccompanyingPeriodResourceVoter.php | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php index fb73753f0..5982fcebe 100644 --- a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php +++ b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php @@ -14,6 +14,7 @@ namespace Chill\PersonBundle\DependencyInjection; use Chill\MainBundle\DependencyInjection\MissingBundleException; use Chill\MainBundle\Security\Authorization\ChillExportVoter; use Chill\PersonBundle\Doctrine\DQL\AddressPart; +use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodResourceVoter; use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter; use Chill\PersonBundle\Security\Authorization\PersonVoter; use Exception; @@ -425,11 +426,10 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac Request::METHOD_PATCH => true, Request::METHOD_HEAD => false, Request::METHOD_DELETE => false, - ], /* - 'roles' => [ - //Request::METHOD_PATCH => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE ], - */ + 'roles' => [ + Request::METHOD_PATCH => AccompanyingPeriodResourceVoter::EDIT, + ], ], ], ], diff --git a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php index e27a6a8bb..d17a44dd3 100644 --- a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php +++ b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodResourceVoter.php @@ -23,6 +23,11 @@ class AccompanyingPeriodResourceVoter extends Voter private AccessDecisionManagerInterface $accessDecisionManager; + public function __construct(AccessDecisionManagerInterface $accessDecisionManager) + { + $this->accessDecisionManager = $accessDecisionManager; + } + protected function supports($attribute, $subject) { return $subject instanceof Resource && self::EDIT === $attribute; @@ -35,7 +40,7 @@ class AccompanyingPeriodResourceVoter extends Voter case self::EDIT: return $this->accessDecisionManager->decide( $token, - AccompanyingPeriodVoter::EDIT, + [AccompanyingPeriodVoter::EDIT], $subject->getAccompanyingPeriod() ); From e540baaa4fc0e7f1b86355b34d5b8fadcc6b9da3 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 12 Jan 2022 10:09:42 +0100 Subject: [PATCH 05/24] fix condition when confirming delete action --- .../Resources/views/Util/confirmation_template.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig index 1da31cfc7..119e213ef 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig @@ -6,7 +6,7 @@

{{ confirm_question }}

{% endif %} -{% if display_content is not empty %} +{% if display_content is defined and display_content is not empty %} {{ display_content|raw }} {% endif %} From b1bffd875cb7fd045e5c9e608731d0009b731883 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 12 Jan 2022 11:19:57 +0100 Subject: [PATCH 06/24] Undo 'add thirdparty comment in acccourse resources' (commit 62b8b3e6) -> it was displaying wrong comment ! --- .../AccompanyingCourse/components/Resources/ResourceItem.vue | 1 - src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | 1 - .../public/vuejs/_components/Entity/ThirdPartyRenderBox.vue | 3 --- .../Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue | 1 - .../Serializer/Normalizer/ThirdPartyNormalizer.php | 1 - 5 files changed, 7 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue index e17555c6a..58b155ef6 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue @@ -48,7 +48,6 @@ addId : false, addEntity: true, addInfo: false, - //addComment: true, hLevel: 3 }">