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 1324-1330 Link Here
1324
1324
1325
                [% IF ( editsql ) %]
1325
                [% IF ( editsql ) %]
1326
                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" id="sql_report_form">
1326
                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" id="sql_report_form">
1327
                        <input type="hidden" name="phase" value="Update SQL" />
1328
                        <input type="hidden" name="id" value="[% id | html %]"/>
1327
                        <input type="hidden" name="id" value="[% id | html %]"/>
1329
                        <fieldset class="rows">
1328
                        <fieldset class="rows">
1330
                            <legend><h1>Edit SQL report</h1></legend>
1329
                            <legend><h1>Edit SQL report</h1></legend>
Lines 1382-1388 Link Here
1382
                        </fieldset>
1381
                        </fieldset>
1383
1382
1384
                        <fieldset class="action">
1383
                        <fieldset class="action">
1385
                            <input type="submit" name="submit" class="btn btn-primary" value="Update SQL" />
1384
                            <input type="submit" name="phase" class="btn btn-primary" value="Update SQL" />
1385
                            <input type="submit" name="phase" class="btn btn-primary" value="Update and run SQL" />
1386
                            <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
1386
                            <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a>
1387
                        </fieldset>
1387
                        </fieldset>
1388
                    </form>
1388
                    </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