X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fprint_profiles.php;h=bf3d698f7cc0f0c7911dea339e53b7b4f0b71431;hb=f821f29324e963437132a3f6fa7c57fcef5c5f0e;hp=fb959dfb61667893fc12ffaae9666d0915dd4b36;hpb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;p=fa-stable.git diff --git a/admin/print_profiles.php b/admin/print_profiles.php index fb959dfb..bf3d698f 100644 --- a/admin/print_profiles.php +++ b/admin/print_profiles.php @@ -23,9 +23,9 @@ $selected_id = get_post('profile_id',''); // Returns array of defined reports // function get_reports() { - global $path_to_root, $go_debug; + global $path_to_root, $SysPrefs; -if ($go_debug || !isset($_SESSION['reports'])) { +if ($SysPrefs->go_debug || !isset($_SESSION['reports'])) { // to save time, store in session. $paths = array ( $path_to_root.'/reporting/', @@ -105,7 +105,7 @@ if ( get_post('submit')) update_printer_profile($_POST['profile_id'], $prof); if ($selected_id == '') { display_notification_centered(_('New printing profile has been created')); - clear_form(); + clear_form($selected_id); } else { display_notification_centered(_('Printing profile has been updated')); } @@ -184,4 +184,3 @@ div_end(); end_form(); end_page(); -?>