Closed (fixed)
Project:
Drupal core
Component:
taxonomy.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Feb 2005 at 17:26 UTC
Updated:
18 Mar 2005 at 03:15 UTC
Jump to comment: Most recent file
form_item() isn't right in a few cases. Such as confirmation pages and things which should be using other form functions.
There was a subtle difference between form_select() and whatever taxonomy was doing. Thats why there is extra code here. I tested it a bit too.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | taxonomy.module_4.diff | 5.1 KB | drumm |
| taxonomy.module_3.diff | 4.94 KB | drumm |
Comments
Comment #1
Bèr Kessels commented+1 from me. Untill we have a general confirmation API, we should use something like this.
Furthermore the form_select, instead of an ugly looped selector genreator makes sense.
Comment #2
dries commentedAll other configuration pages (eg. locale module, menu module, etc.) all use form_item(). I'm likely to drop that bit, and have yet to see the feasability of a 'confirmation API' (it sounds difficult).
(Ber: it is not clear from your review whether you tested the patch or not.)
Comment #3
Bèr Kessels commentedDries, I did not test the patch thouroughly. But from what I have seen and tested, the functionality does not change at all. Only the confirmation page looks more like the others we have.
Off-topic: Some handbook page with a test-program might be handy. I, for example have very little professional experience with testing. i just install it and click around a bit, but there must be some good methods.
Comment #4
dries commentedBer: the confirmation page is less like the others we have. What makes you believe it looks more like the others?
Comment #5
Steven commentedBtw, I think the "confirmation API" that Bèr was talking about is just a simple form_ function to confirm various stuff in a consistent way. It's pretty simple to do.
Comment #6
dries commentedThis patch seems to break adding terms to vocabularies with no hierarchies.
Comment #7
drummFor the confimation pages: it is consistent with the block and input format admin pages.
For the adding terms, I am not suprised. Hopefully I can fix this in the next could days.
Comment #8
drummFixes problem raised in #6 by Dries.
Comment #9
drummI think Dries committed this to HEAD
Comment #10
(not verified) commented