Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/integration' into Modules-Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kanduvisla committed Mar 31, 2012
2 parents 68bb797 + 5e6c481 commit 9700742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symphony/lib/toolkit/fields/field.date.php
Expand Up @@ -339,7 +339,7 @@ public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWit
$value = null;

// New entry
if(is_null($data) && is_null($error) && $this->get('pre_populate') == 'yes') {
if(is_null($data) && is_null($flagWithError) && $this->get('pre_populate') == 'yes') {
$value = DateTimeObj::format('now', DateTimeObj::getSetting('datetime_format'));
}

Expand All @@ -358,7 +358,7 @@ public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWit
$label->setAttribute('class', 'date');

if(!is_null($flagWithError)) {
$label = Widget::Error($label, $error);
$label = Widget::Error($label, $flagWithError);
}

$wrapper->appendChild($label);
Expand Down

0 comments on commit 9700742

Please sign in to comment.