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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-2 / +2 lines)
Lines 1323-1329 Link Here
1323
1323
1324
                [% IF ( editsql ) %]
1324
                [% IF ( editsql ) %]
1325
                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" id="sql_report_form">
1325
                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" id="sql_report_form">
1326
                        <input type="hidden" name="phase" value="Update SQL" />
1327
                        <input type="hidden" name="id" value="[% id | html %]"/>
1326
                        <input type="hidden" name="id" value="[% id | html %]"/>
1328
                        <fieldset class="rows">
1327
                        <fieldset class="rows">
1329
                            <legend><h1>Edit SQL report</h1></legend>
1328
                            <legend><h1>Edit SQL report</h1></legend>
Lines 1381-1387 Link Here
1381
                        </fieldset>
1380
                        </fieldset>
1382
1381
1383
                        <fieldset class="action">
1382
                        <fieldset class="action">
1384
                            <input type="submit" name="submit" class="btn btn-primary" value="Update SQL" />
1383
                            <input type="submit" name="phase" class="btn btn-primary" value="Update SQL" />
1384
                            <input type="submit" name="phase" class="btn btn-primary" value="Update and run SQL" />
1385
                            <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
1385
                            <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
1386
                        </fieldset>
1386
                        </fieldset>
1387
                    </form>
1387
                    </form>
(-)a/reports/guided_reports.pl (-2 / +4 lines)
Lines 209-215 elsif ( $phase eq 'Edit SQL'){ Link Here
209
    );
209
    );
210
}
210
}
211
211
212
elsif ( $phase eq 'Update 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-306 elsif ( $phase eq 'Update 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' ) {
305
            print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?reports=$id&phase=Run%20this%20report");
306
        }
304
    }
307
    }
305
}
308
}
306
309
307
- 

Return to bug 23824