projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Journal Inquiry Dates should follow the User Preference Transaction Days. Fixed.
[fa-stable.git]
/
admin
/
printers.php
diff --git
a/admin/printers.php
b/admin/printers.php
index cd44a8e13f7ce4d1951d5c18a1c9f7806db86484..7c68652f502d97cd9caa35ef0451be95ac3c3269 100644
(file)
--- a/
admin/printers.php
+++ b/
admin/printers.php
@@
-59,7
+59,7
@@
if ($Mode == 'Delete')
{
// PREVENT DELETES IF DEPENDENT RECORDS IN print_profiles
{
// 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."));
}
{
display_error(_("Cannot delete this printer definition, because print profile have been created using it."));
}
@@
-80,7
+80,7
@@
if ($Mode == 'RESET')
$result = get_all_printers();
start_form();
$result = get_all_printers();
start_form();
-start_table(
$table_style
);
+start_table(
TABLESTYLE
);
$th = array(_("Name"), _("Description"), _("Host"), _("Printer Queue"),'','');
table_header($th);
$th = array(_("Name"), _("Description"), _("Host"), _("Printer Queue"),'','');
table_header($th);
@@
-108,7
+108,7
@@
echo '<br>';
start_form();
start_form();
-start_table(
$table_style
2);
+start_table(
TABLESTYLE
2);
if ($selected_id != -1)
{
if ($selected_id != -1)
{
@@
-144,4
+144,3
@@
end_form();
end_page();
end_page();
-?>