View | Details | Raw Unified | Return to bug 33966
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-2 / +2 lines)
Lines 1360-1367 Link Here
1360
                        </fieldset>
1360
                        </fieldset>
1361
1361
1362
                        <fieldset class="action">
1362
                        <fieldset class="action">
1363
                            <input type="submit" name="phase" class="btn btn-primary" value="Update SQL" />
1363
                            <button class="btn btn-primary" type="submit" name="phase" value="update_sql">Update SQL</button>
1364
                            <input type="submit" name="phase" class="btn btn-primary" value="Update and run SQL" />
1364
                            <button class="btn btn-default" type="submit" name="phase" value="update_and_run_sql">Update and run SQL</button>
1365
                            <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
1365
                            <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
1366
                        </fieldset>
1366
                        </fieldset>
1367
                    </form>
1367
                    </form>
(-)a/reports/guided_reports.pl (-3 / +2 lines)
Lines 209-215 elsif ( $phase eq 'Edit SQL'){ Link Here
209
    );
209
    );
210
}
210
}
211
211
212
elsif ( $phase eq 'Update SQL' || $phase eq 'Update and run SQL' ){
212
elsif ( $phase eq 'update_sql' || $phase eq 'update_and_run_sql' ){
213
    my $id         = $input->param('id');
213
    my $id         = $input->param('id');
214
    my $sql        = $input->param('sql');
214
    my $sql        = $input->param('sql');
215
    my $reportname = $input->param('reportname');
215
    my $reportname = $input->param('reportname');
Lines 301-307 elsif ( $phase eq 'Update SQL' || $phase eq 'Update and run SQL' ){ Link Here
301
                cache_expiry_units => $cache_expiry_units,
301
                cache_expiry_units => $cache_expiry_units,
302
            );
302
            );
303
        }
303
        }
304
        if ( $phase eq 'Update and run SQL' ) {
304
        if ( $phase eq 'update_and_run_sql' ) {
305
            print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?reports=$id&phase=Run%20this%20report");
305
            print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?reports=$id&phase=Run%20this%20report");
306
        }
306
        }
307
    }
307
    }
308
- 

Return to bug 33966