Some smaller fixes (see CHANGELOG)
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 9 Jul 2008 18:28:38 +0000 (18:28 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 9 Jul 2008 18:28:38 +0000 (18:28 +0000)
CHANGELOG.txt
gl/manage/bank_accounts.php
gl/manage/gl_account_classes.php
includes/session.inc
includes/ui/ui_lists.inc
sales/manage/customers.php

index 2801b07cae770c3dac6e0bd4cc643b752ba0fb47..d8366152af2630f9c6be82e77716b0faa01cfc60 100644 (file)
@@ -19,6 +19,17 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+09-Jul-2008 Janusz Dobrowolski
+# Corrections to maximum input lengths
+$ /gl/manage/bank_accounts.php
+  /gl/manage/gl_account_classes.php
+# Fixed spare Back link on restricted pages
+$ /includes/session.inc
+# Fixed bank_account_types_list()
+$ /includes/ui/ui_lists.inc
+# Fixed warning about unexisting POST var
+$ /sales/manage/customers.php
+
 08-Jul-2008 Janusz Dobrowolski
 # Added validation of entered quantities
 $ /sales/customer_credit_invoice.php
index 58ce49ffffacc9ee34746a64b7e3528e4149ea79..ffe3683e1d5276d0b5925c68a56c0c54cae85769 100644 (file)
@@ -146,9 +146,9 @@ else
 
 bank_account_types_list_row(_("Account Type:"), 'account_type', null); 
 
-text_row(_("Bank Name:"), 'bank_name', null, 50, 50);
-text_row(_("Bank Account Name:"), 'bank_account_name', null, 50, 50);
-text_row(_("Bank Account Number:"), 'bank_account_number', null, 30, 30);
+text_row(_("Bank Name:"), 'bank_name', null, 50, 60);
+text_row(_("Bank Account Name:"), 'bank_account_name', null, 50, 100);
+text_row(_("Bank Account Number:"), 'bank_account_number', null, 30, 60);
 
 if ($is_editing) 
 {
index da3a68d53adc09dc9b763124bec340cf4fda157a..53dd536cd62224710ca40ad75865ddf95d32612f 100644 (file)
@@ -147,7 +147,7 @@ else
        text_row_ex(_("Class ID:"), 'id', 3);
 }
 
-text_row_ex(_("Class Name:"), 'name', 50);
+text_row_ex(_("Class Name:"), 'name', 50, 60);
 
 yesno_list_row(_("Balance Sheet:"), 'Balance', null, "", "", false);
 
index bad4ef65aa9bbfe2fa24085e012d37ab3ab1d31e..0354221d9baa2af4d303ef7b22ad7253a4305675 100644 (file)
@@ -90,7 +90,6 @@
                        echo "<center><br><br><br><b>";
                        echo _("The security settings on your account do not permit you to access this function");
                        echo "</b>";
-                       echo "<br><br><a href='javascript:history.go(-1)'>" . _("Back") . "</a>";
                        echo "<br><br><br><br></center>";
                        //echo '<script type="text/javascript">';
                        //echo 'alert("' . _("The security settings on your account do not permit you to access this function") . '");';
index 864c486afcfa79938e85054f6c4870b448b99640..c654fafba709dde4350f74a754a4ce3d5473f8b0 100644 (file)
@@ -1427,10 +1427,7 @@ function bank_account_types_list($name, $selected_id=null)
        $items = array();
        foreach ($types as $type)
        {
-               if (payment_person_types::has_items($type['id']))
-               {
                        $items[$type['id']] = $type['name'];
-               }
        }
        
        return array_selector($name, $selected_id, $items );
index 0f86a04d83650282f9bcf349dacfa002309e5d6f..bf58e7616c0a00487b4af5f87941573ae057e8c8 100644 (file)
@@ -175,7 +175,7 @@ if (db_has_customers())
 } 
 else 
 {
-       hidden('customer_id', $_POST['customer_id']);
+       hidden('customer_id');
 }
 
 start_table($table_style2, 7, 6);