Taxes edit - checkboxes all selected

Project:Ubercart Contributions
Component:Code
Category:
Priority:minor
Assigned:Unassigned
Status:postponed
Description
Project: 
Ubercart

When editing a tax, all the checkboxes for line items and product types are checked, regardless of the real settings for the tax.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Taxes edit - checkboxes all selected

This is a problem with the Form API in Drupal 5. You can't set a #default_value on checkboxes in a multi-step form. I think I'm lucky that they got put on the last page, or I probably wouldn't be able to save the right values at all.

I figured in this case that checking them all was better than not checking.

Postponed until the port to Drupal 6.

zmove's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 1192
Re: Re: Taxes edit - checkboxes all selected
Assigned to:Lyle» zmove

is there a way tu put a multi select dropdown menu instead of checkboxes if checkboxes are "bugged" in drupal5 ?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Taxes edit - checkboxes all selected
Assigned to:zmove» Lyle

I don't think so. I just tried it real quick and it didn't work. I think that since multi-select boxes are basically the same as checkboxes, the same problem applies to them too.