pmeng / therapy-scheme-generator

1 stars 2 forks source link

Basic Formatting in Textfields #22

Closed pmeng closed 1 year ago

pmeng commented 1 year ago

Currently the text in the Textfields does not support any formatting - not even line breaks. I want it to be able to support basic formatting in Markdown-style this should apply to all textfields (e.g. description, background,...)

pmeng commented 1 year ago

TypeError: App\Entity\Therapy\Stub::setExcerpt(): Argument #1 ($excerpt) must be of type string, null given, called in /httpdocs/src/Repository/Therapy/StubRepository.php on line 68

at src/Entity/Therapy/Stub.php:82 at App\Entity\Therapy\Stub->setExcerpt(null) (src/Repository/Therapy/StubRepository.php:68) at App\Repository\Therapy\StubRepository->updateEntityFromDto(object(Stub), object(StubObject)) (src/Controller/Therapy/StubController.php:145) at App\Controller\Therapy\StubController->editStub(object(Request), 3) (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/httpdocs/vendor/autoload_runtime.php') (public/index.php:5)

When Excerpt is empty, this error is thrown.

DhiaDjobbi commented 1 year ago

Correct. That error should be fixed in: https://github.com/pmeng/therapy-scheme-generator/pull/32

Thank you for your feedback.