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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-15 / +15 lines)
Lines 812-817 Sub report:<select name="subreport"> Link Here
812
</fieldset>
812
</fieldset>
813
[% END %]
813
[% END %]
814
814
815
[% IF ( save_successful ) %]
816
[% UNLESS ( errors ) %]
817
<h2>Your report has been saved</h2>
818
<h4>[% reportname %]</h4>
819
<ul>
820
    [% IF ( id ) %]
821
    <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&amp;phase=Run%20this%20report">Run this report</a></li>
822
    [% END %]
823
    <li>Access this report from the: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports page</a></li>
824
    <li>Schedule this report to run using the: <a href="/cgi-bin/koha/tools/scheduler.pl">Scheduler tool</a></li>
825
    <li>Return to: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Guided reports</a></li>
826
</ul>
827
[% END %]
828
[% END %]
829
815
[% IF ( editsql ) %]
830
[% IF ( editsql ) %]
816
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
831
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" class="validated">
817
<input type="hidden" name="phase" value="Update SQL" />
832
<input type="hidden" name="phase" value="Update SQL" />
Lines 854-874 Sub report:<select name="subreport"> Link Here
854
869
855
[% END %]
870
[% END %]
856
871
857
[% IF ( save_successful ) %]
858
[% UNLESS ( errors ) %]
859
<h2>Your report has been saved</h2>
860
<h4>[% reportname %]</h4>
861
<ul>
862
    [% IF ( id ) %]
863
    <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&amp;phase=Run%20this%20report">Run this report</a></li>
864
    [% END %]
865
    <li>Access this report from the: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports page</a></li>
866
    <li>Schedule this report to run using the: <a href="/cgi-bin/koha/tools/scheduler.pl">Scheduler tool</a></li>
867
    <li>Return to: <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Guided reports</a></li>
868
</ul>
869
[% END %]
870
[% END %]
871
872
[% IF ( errors ) %]
872
[% IF ( errors ) %]
873
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
873
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
874
<div class="dialog alert">
874
<div class="dialog alert">
(-)a/reports/guided_reports.pl (-1 / +14 lines)
Lines 279-284 elsif ( $phase eq 'Update SQL'){ Link Here
279
                'save_successful'       => 1,
279
                'save_successful'       => 1,
280
                'reportname'            => $reportname,
280
                'reportname'            => $reportname,
281
                'id'                    => $id,
281
                'id'                    => $id,
282
                'editsql'               => 1,
283
                'sql'                   => $sql,
284
                'groups_with_subgroups' => groups_with_subgroups($group, $subgroup),
285
                'notes'                 => $notes,
286
                'cache_expiry'          => $cache_expiry,
287
                'public'                => $public,
288
                'usecache'              => $usecache,
282
            );
289
            );
283
            logaction( "REPORTS", "MODIFY", $id, "$reportname | $sql" ) if C4::Context->preference("ReportsLog");
290
            logaction( "REPORTS", "MODIFY", $id, "$reportname | $sql" ) if C4::Context->preference("ReportsLog");
284
        }
291
        }
Lines 648-653 elsif ( $phase eq 'Save Report' ) { Link Here
648
                'save_successful' => 1,
655
                'save_successful' => 1,
649
                'reportname'      => $name,
656
                'reportname'      => $name,
650
                'id'              => $id,
657
                'id'              => $id,
658
                'editsql'         => 1,
659
                'sql'             => $sql,
660
                'groups_with_subgroups' => groups_with_subgroups($group, $subgroup),
661
                'notes'      => $notes,
662
                'cache_expiry' => $cache_expiry,
663
                'public' => $public,
664
                'usecache' => $usecache,
651
            );
665
            );
652
        }
666
        }
653
    }
667
    }
654
- 

Return to bug 19957