Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Bug on function getName() #976

@Quovandius

Description

@Quovandius

Hello everyone,

I have found a very boring bug ... and after many hours to search why, I have found a solution, and may be the reason why.

When you declare a Datatable class on php, nyou can write a GetName function, as documentation said :

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'post_datatable';
    }

But, one tips is very important : you cannot use the dot character on this name.
If you use a syntax like this :

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'post.datatable';
    }

The bug occurs, and absolutely no data has been loaded .... no error ... no xhr request.

I think its because this name is use as a jquery selector, and the dot character create a mismatch with class css.
Am I wrong ?

If anyone can confirm this, I think its a good idea to add this tip on documentation :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions