# Bug OP-15747 - If user removes all columns for their PDF export then default columns are used

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15747

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.4.0 |
| Observed in versions | 14.5.0 |
| Sprint | 15.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.5.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Andrej Sandorf |
| Product manager |  |
| Developers |  |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Go to <https://qa.openproject-edge.com/projects/copy-of-test-project-cecile/work_packages?query_id=3662>

2.  Click on the upper right kebab menu

3.  Click on Export

4.  Select 'Report'

5.  Under 'Manage and reorder columns', remove all columns

### What is the buggy behavior?

  - Export doesn't take the removal in account and displays all columns that are on screen

### What is the expected behavior?

  - For PDF report:
    
      - In case all columns are removed, remove the table completely:

  - For XLS/CSV/PDF table
    
      - An error message state under the manage columns input field should explain to the users they can't export without any columns. The text used could be "It is not possible to export the view without any column. Please, add at least one column and try again."

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/188301/content">

### Environment information

**OpenProject version**

*dev*

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
