Thanks for this awesome module.

This new drush wfx is awesome, however, the skip-header doesn't seem to be working.

I couldn't find an example online or in the webform.drush.inc, it just says 'Skip output of header rows (defaults to printing header)'

I have tried setting it the following ways to no avail

drush wfx nid --skip-header=1
drush wfx nid --skip-header=0
drush wfx nid --skip-header
drush wfx nid --skip-header=skip-header

But the generated export file keeps printing the headers.

Is this a bug or is it just lacking an example of how it should be set?

Comments

danchadwick’s picture

I don't see the option used in the code, so you can call it a documentation bug (help should be removed) or functional bug (option should be implemented).

Patches welcome.

  • DanChadwick committed ceb133b on 7.x-4.x
    Issue #2416191 by DanChadwick: Added wfx option to skip the header by...
  • DanChadwick committed 18bf909 on 8.x-4.x
    Issue #2416191 by DanChadwick: Added wfx option to skip the header by...
danchadwick’s picture

Title: wfx skip header is not responding when set to 0 or 1 » wfx add option to not output header
Category: Bug report » Feature request
Status: Active » Fixed
StatusFileSize
new3.69 KB

The skip-header option was removed from the drush help text.

A new column heading format option of "none" with a value of -1 was added to the UI and to drush. Use header-keys=-1 for no header.

Committed to 7.x-4.x and 8.x.

  • DanChadwick committed b376307 on 7.x-4.x
    Issue #2416191 by DanChadwick: Fixed no-header output for Excel so that...
  • DanChadwick committed 2507699 on 8.x-4.x
    Issue #2416191 by DanChadwick: Fixed no-header output for Excel so that...
danchadwick’s picture

Small bug which causes Excel to reject the file, although OpenOffice Calc can open it. When the header was skipped, rows were also skipped in the output file. Fixed.

Committed to 7.x-4.x and 8.x.

jcuna’s picture

DanChadwick, I forgot to thank you for your efforts. Greatly appreciated.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.