Skip to content

gremo/sonata-page-delete-bug

Repository files navigation

sonata-page-delete-bug

Bug description: a page can't be deleted using the edit view button. It can only be deleted using the list view.

Requirements to reproduce: Docker Desktop and Visual Studio Code with the Dev Containers extension installed.

  1. Clone this repository

  2. Create .env.local file with the following content:

    DATABASE_URL="mysql://root:@db:3306/app?serverVersion=11.0.2-MariaDB&charset=utf8mb4"
    MAILER_DSN=null://null
  3. Open Visual Studio Code and reopen the project in Container

  4. Run the following:

    composer install
    bin/console doctrine:migrations:migrate -n
    bin/console sonata:page:create-site --name=localhost --host=localhost --relativePath="" --enabled --enabledFrom=- --enabledTo=- --default --locale=-
    bin/console sonata:page:update-core-routes --site=all
    bin/console sonata:page:create-snapshots --site=all
  5. Create the user foo with password bar:

    bin/console sonata:user:create foo foo@example.com bar --super-admin
  6. Access http://localhost/admin/app/sonatapagepage/create and create a new page named i.e. "foo"

  7. Delete the page "foo" from the edit page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published