When exporting to HTML a book collection "you must select at least one field" pops up but "Field to be exported" is greyed out

Bug #1196313 reported by cne007
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
GCstar
Fix Released
Undecided
Carlos Hsiao
gcstar (Ubuntu)
Fix Released
Undecided
Carlos Hsiao

Bug Description

When exporting to HTML a book collection "you must select at least one field" pops up but "Field to be exported" is greyed out. Then you cannot continue the export.

Revision history for this message
tempura (tempura) wrote :

I have just run into the same problem here - using Xubuntu 14.04 with the provided GCstar package (version 1.7.0).

The problem seems to be some leftover code in /usr/share/gcstar/lib/GCExport/GCExportHTML.pm - look for the function 'wantsFieldsSelection':

    sub wantsFieldsSelection
    {
        my $self = shift;
        return 1;
        return $self->{genericAdded} || $self->{genericModels};
    }

In the current version it will always return '1' and thus make field selection mandatory for exporting - which IMHO is not needed for HTML export. Commenting the line with 'return 1;' - i.e. prepending it with a hash ('#') or removing it fixes the issue for me (GCstar needs to be restarted after the change if it was running).

Seems to be the same, as the problem mentioned in this post in the GCStar forums:
http://forums.gcstar.org/viewtopic.php?id=3462

Maybe someone could push this upstream or notify the devs...

Carlos Hsiao (weii666)
Changed in gcstar:
assignee: nobody → Carlos Hsiao (weii666)
Changed in gcstar (Ubuntu):
assignee: nobody → Carlos Hsiao (weii666)
Carlos Hsiao (weii666)
Changed in gcstar (Ubuntu):
status: New → Confirmed
Changed in gcstar:
status: New → Confirmed
Revision history for this message
Mihai Capotă (mihaic) wrote :

The workaround suggested in the forum thread referenced in comment #1 works: you can export from the command line, e.g.:
gcstar -x -e HTML -o test.html --exportprefs "template=>Tian" file.gcs

Revision history for this message
Mihai Capotă (mihaic) wrote :

There is another workaround in comment #3 of duplicate bug #1059109: export as CSV first (you can select fields there), then you can export to HTML any number of times until you close the program.

Revision history for this message
Kerenoc (kerenoc01) wrote :

Fixed since 1.7.3

Changed in gcstar:
status: Confirmed → Fix Released
Changed in gcstar (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.