Skip to content

Error when exporting empty result #49

Closed

Description

@lethunder

When you are on an index and you search for something that returns an empty table. When you try to export that it raises an error
uninitialized constant Class::ATTRIBUTE_TYPES

Export link you appear only if records > to 0

Activity

  1. andreibondarev commented on Dec 20, 2023

    @andreibondarev
    Member

    @lethunder Thank you for flagging it. I'm not sure I have time to look into this error but if you're able to issue a PR with a fix -- I'll review it and merge it.

  2. darkaico commented on Sep 24, 2024

    @darkaico
    Contributor

    @lethunder I was trying to reproduce it, but I could not. If I have an empty table, because of a search that throws that, or because I have no elements, Im still able to export without errors (and having an empty CSV of course, only headers)

    Could you let me know if you're still having this error?

  3. andreibondarev commented on Oct 21, 2026

    @andreibondarev
    Member

    This is addressed in #59 and will close automatically when it's merged.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions