Skip to content

Commit

Permalink
la validation déconnait
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.iariss.fr/erp@130 55463ab2-4f42-40d6-a48e-481de4af6215
  • Loading branch information
m.mure committed Mar 14, 2011
1 parent dacc87d commit 1d692ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/modules/projet/templates/showSuccess.php
Expand Up @@ -68,7 +68,7 @@
echo link_to($event->getProjetEventType()->getDescription(), '@projetevent?action=edit&id='.$event->getId()); ?>

<?php if($event->getDate()) : ?>
<div class='projetEventInfo'>La date du document est le <?php echo format_date($event->getDate()) ?></div>
<div class='projetEventInfo'>La date est le <?php echo format_date($event->getDate()) ?></div>
<?php endif ?>

<?php if($event->getCommentaire()) : ?>
Expand Down
2 changes: 1 addition & 1 deletion lib/form/doctrine/ProjetEventForm.class.php
Expand Up @@ -25,7 +25,7 @@ public function configure()
'culture'=>'fr',
'date_widget' => new sfWidgetFormDate(array('format' => '%day%/%month%/%year%')),
));
$this->setValidator('date', new sfValidatorDate(array('max' => date('Y-m-d'))));
$this->setValidator('date', new sfValidatorDate(array('max' => date('Y-m-d'), 'required' => false)));
$this->setDefault('date', date('Y-m-d'));

$this->setValidator('url', new sfValidatorUrl(array('required' => false)));
Expand Down

0 comments on commit 1d692ae

Please sign in to comment.