crud-admin-generator icon indicating copy to clipboard operation
crud-admin-generator copied to clipboard

Spaces in column gives me Ajax error and 500 (Internal Server Error)

Open telefax opened this issue 9 years ago • 3 comments

As soon as I have a space in column name, for example "End of Life" I'm geting this error when entering the List page;

"DataTables warning: table id=inventory_list - Ajax error. For more information about this error, please see http://datatables.net/tn/7"

When I remove the space it works. It doesn't look too good having to use "End_of_Life" for list page to work. Is it possible to have the list page to resolve underscores as spaces?

Thanks

Edit: Actually the Create page resolves underscores to spaces. And my column ISV_Account_Name resolves to "I s v account name", little bit weird? :P

telefax avatar Oct 31 '15 07:10 telefax

No space in table name please u_u"

So yes, you should use underscore table_name, and it's resolve in space in column displaying and some title. For the list of table, it may be a good idea to resolve them to... (and take a look on how we deal with them around as it seem to be a little weird)

blag001 avatar Nov 01 '15 21:11 blag001

Can you sort this out please :) I know its not correct practice, but I feel this project shouldn't bother trying to enforce that. Just add the ' ' around all column names - I would do it myself and push it but i have no idea about this twig stuff

worthy7 avatar Nov 18 '15 07:11 worthy7

Work arounds can be fine, as long as they're documented. This project lacks proper documentation, for instance, took me some while to find how to create table relations..until I found the instructions in the "sales pitch" on http://crud-admin-generator.com/ and the readme file gave barely no clues to anything.

telefax avatar Nov 21 '15 22:11 telefax