-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a new grid field using ChannelField Model leads to exception error when field accessed #4342
Comments
FWIW - Seems that this code fragment will generate the correct
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
Created a new grid field using the ChannelField model following instructions from here.
Have confirmed by inspection of database that a grid_field entry is added to
exp_channel_fields
, but it seems that an associated table of the formexp_channel_grid_field_xx
is not created.When CP for entry concerned is subsequently viewed, exception error thrown due to missing table.
There is no documentation describing how / what is required to ensure that an associated table is created (at least that I can find).
How To Reproduce
As per description above.
Error Messages
Screenshots / Videos / Template Code
The field concerned was created using the following add-on code:
Field validation is disabled as a work-around for this issue.
Environment Details:
Possible Solution
Add some kind of default behaviour to either the channelfield model methods, or the part of CP that displays grid field to either create a dummy
exp_channel_grid_field_xx
table and an equivalent entry inexp_grid_columns
, or display the grid field without content area (and so avoid the exception).and
Improve documentation to describe missing steps that lead to generation of the appropriate grid_field_xx data table.
The text was updated successfully, but these errors were encountered: