When checking the value of vacation.active postgresql returns "t" (for true) if the field is active, not the number "1". This fails the test at line 66 of virtual.class.php and as a result hte enabled checkbox is never properly ticked in the form. The following change seems to fix the problem:
@@ -63,7 +68,7 @@
if ($row = $this->db->fetch_assoc($res)) {
$vacArr['body'] = $row['body'];
$vacArr['subject'] = $row['subject'];
- $vacArr['enabled'] = ($row['active'] == 1) && ($fwdArr['enabled'] == 1);
+ $vacArr['enabled'] = ($row['active']) && ($fwdArr['enabled']);
}