whiteoctober / WhiteOctoberAdminBundle

A different take on an AdminBundle for Symfony2
MIT License
79 stars 14 forks source link

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

Open damienalexandre opened 13 years ago

damienalexandre commented 13 years ago

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 commented 13 years ago

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

->setActionOption("list", "batch", false)
Nelrann commented 13 years ago

same probleme

makasim commented 13 years ago

same problem

pacoVela commented 13 years ago

Same problem

richsage commented 13 years ago

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...