WhiteOctoberAdminBundle icon indicating copy to clipboard operation
WhiteOctoberAdminBundle copied to clipboard

Item "isSelected" for "" does not exist in WhiteOctoberAdminBundle:default:list.html.twig at line 93

Open damienalexandre opened this issue 14 years ago • 5 comments
trafficstars

Hello, I have this exception when I'm testing the Bundle, I can't do anything about it so I'm submiting this bug.

I have followed the documentation, here is my code:

<?php
namespace Acme\DemoBundle\Admin;
use WhiteOctober\AdminBundle\DataManager\Doctrine\ORM\Admin\DoctrineORMAdmin;

class ArticleAdmin extends DoctrineORMAdmin
{
protected function configure()
{
    $this
      ->setName('Articles')
      ->setDataClass('Acme\DemoBundle\Entity\Article')
      ->addActions(array(
          'doctrine.orm.crud',
      ))
      ->addFields(array(
          'title',
          'body',
      ))
  ;
}
}

My config:

white_october_admin:
    data_managers:
        doctrine:
            orm:    true
            odm:    false
        mandango:   false
    admins:
        - { class: Acme\DemoBundle\Admin\ArticleAdmin }

And a simple annotation mapped entity :

class Article
{
/**
 * @var integer $id
 *
 * @ORM\Column(name="id", type="integer")
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="AUTO")
 */
private $id;

/**
 * @var string $title
 *
 * @ORM\Column(name="title", type="string", length=255)
 */
private $title;

/**
 * @var text $body
 *
 * @ORM\Column(name="body", type="text")
 */
private $body;

As you can see it's very simple.

I'm running a Symfony SE RC4 and everything else is okay.

As the issue appears to be in Twig, is quite difficult to catch inside the stack trace. Can anyone reproduce this? Thank you.

damienalexandre avatar Jul 07 '11 12:07 damienalexandre

For people who want to play with the Bundle, here is how to disable the batch:

->setActionOption("list", "batch", false)

damienalexandre avatar Jul 07 '11 14:07 damienalexandre

same probleme

Nelrann avatar Sep 14 '11 18:09 Nelrann

same problem

makasim avatar Sep 28 '11 13:09 makasim

Same problem

pacoVela avatar Oct 06 '11 07:10 pacoVela

I've just experienced this here (so far I've only personally used the Mandango admin, but now I've experienced it with the Doctrine ORM). I'll take a look...

richsage avatar Oct 30 '11 10:10 richsage