Work on QnA notice display -- in progress

This commit is contained in:
Zach Copley
2011-03-21 20:57:19 -07:00
parent b0ed4cb89a
commit 7f4bd6b69f
7 changed files with 298 additions and 146 deletions

View File

@@ -113,7 +113,7 @@ class QnA_Question extends Managed_DataObject
'closed' => array('type' => 'int', 'size' => 'tiny'),
'description' => array('type' => 'text'),
'created' => array(
'type' => 'datetime',
'type' => 'datetime',
'not null' => true
),
),
@@ -175,7 +175,6 @@ class QnA_Question extends Managed_DataObject
static function fromNotice($notice)
{
common_debug('xxxxxxxxxxxxxxx notice-uri = ' . $notice->uri);
return QnA_Question::staticGet('uri', $notice->uri);
}
@@ -209,7 +208,7 @@ class QnA_Question extends Managed_DataObject
$q->uri = $options['uri'];
} else {
$q->uri = common_local_url(
'showquestion',
'qnashowquestion',
array('id' => $q->id)
);
}