Closed (fixed)
Project:
Domain
Version:
6.x-2.0-rc9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2009 at 01:11 UTC
Updated:
23 Sep 2009 at 02:40 UTC
Jump to comment: Most recent file
Ran into a new and annoying one today. Here's steps to replicate:
1. edit a domain, set stautus to inactive
2. in domain list domain shows up as inactive
3. on domain edit domain shows up as active
The culprit is line 462 in domain.admin.inc
'#default_value' => !empty($domain['valid']) ? $domain['valid'] : 1,
which should be
'#default_value' => !empty($domain['valid']) ? $domain['valid'] : 0,
I'd roll a patch but my pc is a bit under the weather after blessing me with a blue screen...
Patch to follow as soon as I get up and running again.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 572124-status.patch | 897 bytes | agentrickard |
Comments
Comment #1
agentrickardActually. we have to use isset() here, to ensure that the default is 1 when the form is first loaded.
Nice catch, I can't believe we never saw this before. Must've been the form changes that went through a while back.
Committed.