type warning in dimension tags
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 10 Nov 2009 22:58:30 +0000 (22:58 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 10 Nov 2009 22:58:30 +0000 (22:58 +0000)
CHANGELOG.txt
admin/tags.php

index 98077381cdd1befe1600beab0e16f464d388657f..c7fd6dfd8a23bdd9180ed16260734286a90b388d 100644 (file)
@@ -32,6 +32,8 @@ $ /gl/includes/ui/gl_bank_ui.inc
 # disallow bank accounts in accounts list when type is Bank Deposits
   or Payments. See above.
 $ /gl/manage/gl_quick_entries.php
+# type warning in dimension tags
+$ /admin/tags.php
 
 09-Nov-2009 Janusz Dobrowolski
 ! Fixed help link to provide ctxhelp switch and clean the page context string.
index 4bc0c8548b6ec83f365d5c491612e63a57651bb1..f87d98d6c69c8c0de417ff1fd005fdc90178c505 100644 (file)
@@ -16,9 +16,9 @@ include_once($path_to_root . "/admin/db/tags_db.inc");
 include($path_to_root . "/includes/ui.inc");
 
 // Set up page security based on what type of tags we're working with
-if (@$_GET['type'] == "account" || $_POST['type'] == TAG_ACCOUNT) {
+if (@$_GET['type'] == "account" || get_post('type') == TAG_ACCOUNT) {
        $page_security = 'SA_GLACCOUNTTAGS';
-} else if(@$_GET['type'] == "dimension" || $_POST['type'] == TAG_DIMENSION) {
+} else if(@$_GET['type'] == "dimension" || get_post('type') == TAG_DIMENSION) {
        $page_security = 'SA_DIMTAGS';
 }