v2.3.5-cvs
----------
+[jan] Set an alarm to one minute, if users try to set an alarm without time.
[jan] Add missing preference for not sending update notifications to yourself
(Joel Smith <js-horde@jk1.net>, Request #8978).
[gwr] Fix organizer field not saved in tasks (kolab/issue3888).
$info = $var->getValue($vars);
if (!$info['on']) {
$info = 0;
+ } else {
+ $value = $info['value'];
+ $unit = $info['unit'];
+ if ($value == 0) {
+ $value = $unit = 1;
+ }
+ $info = $value * $unit;
}
- $info = $info['value'] * $info['unit'];
}
function isValid(&$var, &$vars, $value, &$message)
$message = _("A due date must be set to enable alarms.");
return false;
}
- if (empty($value['value'])) {
- $message = _("The alarm value must not be empty.");
- return false;
- }
}
return true;
/**
* The Horde_Ui_VarRenderer_Nag class provides additional methods for
- * rendering Horde_Form_Type_alarm fields.
+ * rendering Nag specific fields.
*
* @todo Clean this hack up with Horde_Form/H4
* @author Jan Schneider <jan@horde.org>