Some smaller fixes.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 20 Apr 2008 18:45:19 +0000 (18:45 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 20 Apr 2008 18:45:19 +0000 (18:45 +0000)
CHANGELOG.txt
includes/lang/language.php
includes/ui/items_cart.inc
includes/ui/ui_lists.inc
includes/ui/ui_view.inc

index b807e65a3a7242e7c5ff02392f34122dda40a22b..272ecf19dc222195db25cb1439fd78efca805abb 100644 (file)
@@ -19,6 +19,16 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+20-Apr-2008 Janusz Dobrowolski
+# Checking uniqueness of company settings, fixed creating database with prefix 0 when none was selected.
+$ /admin/create_coy.php
+! Added missing include_once directives.
+$ /includes/ui/items_cart.inc
+  /includes/ui/ui_lists.inc
+  /includes/ui/ui_view.inc
++ Added ini default_charset unnecessary for planned ajax calls.
+$ /includes/lang/language.inc
+
 19-Apr.2008 Joe Hunt
 # Bug (right to left text was done if price decimals were 3). A test sentense from a while
   ago wasn't removed.
index 57b54e017264c7e375d7045378048e783e832650..876abd1544fd4bf35e79689ed6f3b38ba5019e44 100644 (file)
@@ -89,6 +89,9 @@ get_text::init();
 get_text::set_language($lang->code, $lang->encoding);
 //get_text::add_domain("wa", $path_to_root . "/lang");
 get_text::add_domain($lang->code, $path_to_root . "/lang");
+// Unnecessary for ajax calls. 
+// Due to bug in php 4.3.10 for this version set globally in php4.ini
+ini_set('default_charset', $_SESSION['language']->encoding);
 
 if (!function_exists("_")) 
 {
index 2c77babf3b4b76ad1eaf9ab01db699026418fe07..fb4b71ab86faad4f4a1114590d91a7ecaef9f332 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 
+include_once($path_to_root . "/inventory/includes/prefs/sysprefs.inc");
 include_once($path_to_root . "/inventory/includes/inventory_db.inc");
 
 class items_cart 
index 178a48dbdbfb5800e0280babadd695e1dd112722..ef01376aba54b56fab25bff971228719f734869f 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
 include_once($path_to_root . "/includes/banking.inc");
+include_once($path_to_root . "/includes/reserved.inc");
+include_once($path_to_root . "/includes/types.inc");
 
 define("DEFVAL", "--");
 $search_button = "<input type='submit' class='combo_submit' style='border:0;background:url($path_to_root/themes/default/images/locate.png) no-repeat;' name='%s' value='?' title='"._("Search")."'> ";
index d76dd824a34ef138c096182a6d26a0f28df5a85b..ddd62fef061c4a720122da39805cb9415ebf9c0b 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 include_once($path_to_root . "/admin/db/voiding_db.inc");
+include_once($path_to_root . "/includes/types.inc");
 
 //--------------------------------------------------------------------------------------