Skip to content
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

Invalid sort column "EditableFormField"."Sort" #10645

Closed
sabina-talipova opened this issue Jan 11, 2023 · 1 comment
Closed

Invalid sort column "EditableFormField"."Sort" #10645

sabina-talipova opened this issue Jan 11, 2023 · 1 comment

Comments

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Jan 11, 2023

Affected Version

silverstripe-framework 5

Description

When a user creates a User Defined Form Page it gets a 500 error with an exception

[Emergency] Uncaught InvalidArgumentException: Invalid sort column "EditableFormField"."Sort"
GET /admin/pages/edit/show/19
Line 398 in /var/www/html/vendor/silverstripe/framework/src/ORM/DataList.php

Source
396         $this->applyRelation($col, $columnName, true);
397         if ($col === $columnName) {
398             throw new InvalidArgumentException("Invalid sort column $column");
399         }

Steps to Reproduce

  • I go to "/admin/pages"
  • I press the "Add new" button
  • I select the "User Defined Form Page" radio button
  • I click 'Create' button

Acceptance criteria

  • You can create a UserDefinedForm page without an exception being thrown.

PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants