Author: sevein
Date: Mon Sep 19 14:00:12 2011
New Revision: 9759
Log:
Set current date as default value for restriction start field. Fixes issue 2069.
Modified:
trunk/apps/qubit/modules/right/actions/editComponent.class.php
Modified: trunk/apps/qubit/modules/right/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/right/actions/editComponent.class.php Mon Sep
19 12:49:20 2011 (r9758)
+++ trunk/apps/qubit/modules/right/actions/editComponent.class.php Mon Sep
19 14:00:12 2011 (r9759)
@@ -54,6 +54,8 @@
break;
case 'startDate':
+ $dt = new DateTime;
+ $this->form->setDefault('startDate', $dt->format('Y-m-d'));
$this->form->setValidator('startDate', new sfValidatorString);
$this->form->setWidget('startDate', new sfWidgetFormInput);
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.