Skip to content

File Grid fields broken after import of Channel Set #1645

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

Closed
silenz88 opened this issue Dec 12, 2021 · 4 comments · Fixed by #3433
Closed

File Grid fields broken after import of Channel Set #1645

silenz88 opened this issue Dec 12, 2021 · 4 comments · Fixed by #3433
Labels
Bug: Unconfirmed Bug report that is not yet confirmed and/or is not reproducible.

Comments

@silenz88
Copy link

EE 6.1.6

After importing a channel set with several fields I was not able to create a new entry because for all included file-grid-fields the extra-grid-table was missing.

Normal grid-fields in that Channel Set did not pose any problem.

Error when trying to save the entry:
importc

@intoeetive
Copy link
Contributor

@silenz88 I did not dig too deep, but can you try this change?

In system\ee\ExpressionEngine\Service\ChannelSet\Set.php change line 781 to $this->importGrid($field, $value, $type);

Then in same file on line 870 change to private function importGrid($field, $columns, $type = 'grid')
and below it, change 2 occurrences of $_POST['grid'] to $_POST[$type]

@silenz88
Copy link
Author

I'm afraid I have no capacities right now to test it. I deleted and recreated the fields and moved on.

@intoeetive intoeetive added the Bug: Unconfirmed Bug report that is not yet confirmed and/or is not reproducible. label Dec 13, 2021
@intoeetive
Copy link
Contributor

No worries. We'll have this checked later

@silenz88
Copy link
Author

silenz88 commented Jan 7, 2022

@silenz88 I did not dig too deep, but can you try this change?

In system\ee\ExpressionEngine\Service\ChannelSet\Set.php change line 781 to $this->importGrid($field, $value, $type);

Then in same file on line 870 change to private function importGrid($field, $columns, $type = 'grid') and below it, change 2 occurrences of $_POST['grid'] to $_POST[$type]

Applying that change only led to a bunch of other errors and no action being taken at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Unconfirmed Bug report that is not yet confirmed and/or is not reproducible.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants