save title and description of bookmark
This commit is contained in:
parent
f641034471
commit
85d54cbdb7
|
@ -66,7 +66,12 @@ class BookmarkPlugin extends Plugin
|
|||
'integer',
|
||||
null,
|
||||
true,
|
||||
'PRI')));
|
||||
'PRI'),
|
||||
new ColumnDef('title',
|
||||
'varchar',
|
||||
255),
|
||||
new ColumnDef('description',
|
||||
'text')));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -180,7 +180,9 @@ class NewbookmarkAction extends Action
|
|||
|
||||
if (!empty($saved)) {
|
||||
$nb = new Notice_bookmark();
|
||||
$nb->notice_id = $saved->id;
|
||||
$nb->notice_id = $saved->id;
|
||||
$nb->title = $this->_title;
|
||||
$nb->description = $this->_description;
|
||||
$nb->insert();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user