X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fprinters.php;h=3334d6b76c6d187c62e4e8e34d3263008e7574b7;hb=cc9972b02f2bf4ece12da3431266e85e96872fb1;hp=cd44a8e13f7ce4d1951d5c18a1c9f7806db86484;hpb=4221bf69f713a2fb0bb4c4cae6f8f4f819c3ec31;p=fa-stable.git diff --git a/admin/printers.php b/admin/printers.php index cd44a8e1..3334d6b7 100644 --- a/admin/printers.php +++ b/admin/printers.php @@ -59,7 +59,7 @@ if ($Mode == 'Delete') { // PREVENT DELETES IF DEPENDENT RECORDS IN print_profiles - if (printer_has_profile($selected_id)) + if (key_in_foreign_table($selected_id, 'print_profiles', 'printer')) { display_error(_("Cannot delete this printer definition, because print profile have been created using it.")); }