X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=admin%2Fprint_profiles.php;h=bf3d698f7cc0f0c7911dea339e53b7b4f0b71431;hb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;hp=ea5535af78e53d821642c7dbad0366971b05633f;hpb=0d191c7bff92b9a9bbc44dab48855477edb99ebf;p=fa-stable.git diff --git a/admin/print_profiles.php b/admin/print_profiles.php index ea5535af..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')); }