DG Site Updates: Sorting by clicking on headers in journal not working, 1 by SallieKr
Communities > Forums
Image Copyright SallieKr
In reply to: Sorting by clicking on headers in journal not working
Forum: DG Site Updates
| <<< Previous photo | Next photo >>> |
|
SallieKr wrote: Thanks melody! Here's what I've noticed, with what little debugging I've managed to do and a couple of screenshots. And, I should have known better than to copy/paste html directly. I had to strip out the tags to get it to display. I tried to help trace the problems, but it's hard when I can only see the resultant html, not the php code behind it :-) I mostly used Chrome browser's "Inspect Element" function to get some clues. Sort when "View All Items" is selected doesn't work Inspect element shows this for a column header, not much help: http://davesgarden.com/tools/journal/viewall.php?sort=name5 ---------------------------------------- "Categories" problem in "Mass Edit" About a week ago I decided to delete an old journal. I now have only one journal, besides the built-in default one. When I move an item to another category using the "Move" link next to the item, I see the list of categories in my current "Default" journal. If I select multiple items and select the "Change Category" button, however, the list of categories includes all of the now non-existent categories from the journal I deleted. This is not good! If I accidentally select one of the categories from the deleted journal, my item is lost, "in limbo" somewhere (I created a test item and tried it.) How do I remove the old categories? Trying to do so through the "Manage Categories" link only shows me the categories in my current journal. IE: when I deleted my old journal, the categories within it were not deleted. My journal home page shows 133 categories, though I have 112 in my current journal and none in the "Default Journal" I couldn't really find anything trying to debug this. Attached screenshot shows some of the now non-existent categories (Perennials and it's sub-categories.) ------------------------------------------- "Add new item" under a category, item ends up having no category. I created a new category "DG Test" and looked at the "Add new item" element: form method="post" action="massaction.php" This category has no entries yet. href="newitem.php?cat=107232" Click here to add a new item. baseURI: "http://davesgarden.com/tools/journal/viewbycat.php?cat=107232" href: "http://davesgarden.com/tools/journal/newitem.php?cat=107232" I add a new item: Common Name "Add New Item Test" initial comment "test of adding a new item" Status "Info" Submit button, inspect element: input type="submit" name="submit" value="submit" console shows an error- not sure if relevant: "Failed to load resource: the server responded with a status of 404 (Not Found) http://t0.gstatic.com/favicon?q=tbn:ANd9GcR61lWk54yrHwy8JfJG..." baseURI: "http://davesgarden.com/tools/journal/newitem.php?cat=107232" input type="hidden" name="submitted" value="1" input type="hidden" name="cat" value="" Maybe the last line above? Somehow, the cat number isn't being passed to the function to create the new item. The new item is here: http://davesgarden.com/tools/journal/viewentry.php?rid=37768... I can locate it by status "Info" or by searching my journal for the word "test", but it has no category. Attached screenshot shows the new item with empty "Category". |


