add toselector to bookmark
This commit is contained in:
parent
fff66e1ebb
commit
c0f63c9a69
@ -148,6 +148,12 @@ class BookmarkForm extends Form
|
|||||||
$this->unli();
|
$this->unli();
|
||||||
|
|
||||||
$this->out->elementEnd('ul');
|
$this->out->elementEnd('ul');
|
||||||
|
|
||||||
|
$toWidget = new ToSelector($this->out,
|
||||||
|
common_current_user(),
|
||||||
|
null);
|
||||||
|
$toWidget->show();
|
||||||
|
|
||||||
$this->out->elementEnd('fieldset');
|
$this->out->elementEnd('fieldset');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,12 +137,16 @@ class NewbookmarkAction extends Action
|
|||||||
throw new ClientException(_m('Bookmark must have an URL.'));
|
throw new ClientException(_m('Bookmark must have an URL.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$options = array();
|
||||||
|
|
||||||
|
ToSelector::fillOptions($this, $options);
|
||||||
|
|
||||||
$saved = Bookmark::saveNew($this->user->getProfile(),
|
$saved = Bookmark::saveNew($this->user->getProfile(),
|
||||||
$this->title,
|
$this->title,
|
||||||
$this->url,
|
$this->url,
|
||||||
$this->tags,
|
$this->tags,
|
||||||
$this->description);
|
$this->description,
|
||||||
|
$options);
|
||||||
|
|
||||||
} catch (ClientException $ce) {
|
} catch (ClientException $ce) {
|
||||||
$this->error = $ce->getMessage();
|
$this->error = $ce->getMessage();
|
||||||
|
Loading…
Reference in New Issue
Block a user