Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [pugdog] Multiple categories, Add.pm, Modify.pm : major problems

Quote Reply
Re: [pugdog] Multiple categories, Add.pm, Modify.pm : major problems In reply to
In Reply To:
Every link has to have a category, or it's an orphan. This is not a bug.
That's true -- our Add.pm workaround takes care of it.

In Reply To:
As for the modify/category-select, this is probably a bug in the routine, that should send out a multiple-select box, rather than a select-box.
A bug, or a programming oversight ...

But it is also a usability bug -- it allows the user to inadvertently override Admin decisions, and Admin can't stop it. We do need a multiple-select box, but we also need an option to disable category selection by users.

These links are not orphans, they are in multiple categories. The only way we can stop users from trashing hours of work is to stop them modifying anything. Suppose the link is in 5 categories -- after the user has updated the description, or whatever, it is in only one category. All we want to do is allow users to modify their links without being compelled to reduce a multiple category link to a single category link.

Here is the flaw in the logic -- if we remove the input field for the CatLinks.CategoryID, the script complains that the link has no category -- but it doesn't check to see if it is actually true -- it only looks at the form input, not what is already in the database.

Alternatively, if the link is displayed in a category it cannot be an orphan, so there is no need to check. Absence of a value for CatLinks.CategoryID can be justified as an error in Add.pm, but never in Modify.pm -- the link should simply retain the values it already has.

I have tried to find the code where the superfluous check occurs, so I can comment it out, but it is too much for someone who is not an experienced Perl programmer.
Subject Author Views Date
Thread Multiple categories, Add.pm, Modify.pm : major problems YoYoYoYo 7735 Jul 23, 2002, 12:09 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
pugdog 7463 Jul 23, 2002, 5:20 AM
Thread Re: [pugdog] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7462 Jul 23, 2002, 6:13 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7433 Jul 23, 2002, 6:22 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7512 Jul 23, 2002, 6:31 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7419 Jul 23, 2002, 9:21 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7374 Jul 23, 2002, 9:23 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7461 Jul 23, 2002, 10:14 AM
Post Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7396 Jul 23, 2002, 10:55 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
humorlinks 7602 Jul 23, 2002, 11:38 AM
Thread Re: [humorlinks] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7445 Jul 23, 2002, 2:14 PM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
yogi 7375 Jul 23, 2002, 2:21 PM
Thread Re: [yogi] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7379 Jul 23, 2002, 2:52 PM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
yogi 7438 Jul 24, 2002, 12:31 AM
Post Eureka!
YoYoYoYo 7410 Jul 24, 2002, 10:59 PM
Post Re: [yogi] Multiple categories, Add.pm, Modify.pm : major problems
RWhite 7231 Nov 18, 2002, 10:51 AM
Post Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
pugdog 7451 Jul 23, 2002, 5:44 PM
Thread Re: [humorlinks] Multiple categories, Add.pm, Modify.pm : major problems
ridesworld 7291 Aug 10, 2002, 4:28 AM
Post Re: [ridesworld] Multiple categories, Add.pm, Modify.pm : major problems
ridesworld 7215 Nov 17, 2002, 1:43 PM