Author: sevein
Date: Mon Oct 25 01:37:23 2010
New Revision: 8454
Log:
If date display field is blank, database value is not an empty string anymore.
NULL value is used.
Modified:
trunk/lib/model/QubitInformationObject.php
Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php Mon Oct 25 00:03:11 2010
(r8453)
+++ trunk/lib/model/QubitInformationObject.php Mon Oct 25 01:37:23 2010
(r8454)
@@ -507,18 +507,7 @@
public function getDates(array $options = array())
{
$criteria = new Criteria;
- $criteria->addJoin(QubitEvent::ID, QubitEventI18n::ID);
$criteria->add(QubitEvent::INFORMATION_OBJECT_ID, $this->getId());
- $criteria->add(QubitEventI18n::DATE_DISPLAY, null, Criteria::ISNOTNULL);
-
- try
- {
- $criteria->add(QubitEventI18n::CULTURE,
sfContext::getInstance()->user->getCulture());
- }
- catch (sfException $e)
- {
- }
-
if (isset($options['type_id']))
{
$criteria->add(QubitEvent::TYPE_ID, $options['type_id']);
--
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.