Fix regression in using folder object
This commit is contained in:
parent
f8692a19dc
commit
7ba3605df9
1 changed files with 3 additions and 8 deletions
|
@ -287,7 +287,8 @@ class kolab_notes_ui
|
||||||
{
|
{
|
||||||
$this->action = $action;
|
$this->action = $action;
|
||||||
$this->list = $list;
|
$this->list = $list;
|
||||||
$this->folder = $folder;
|
$this->folder = is_object($folder) ? $folder->name : ''; // UTF7;
|
||||||
|
|
||||||
$this->rc->output->add_handler('notebookform', array($this, 'notebookform'));
|
$this->rc->output->add_handler('notebookform', array($this, 'notebookform'));
|
||||||
$this->rc->output->send('kolab_notes.listform');
|
$this->rc->output->send('kolab_notes.listform');
|
||||||
}
|
}
|
||||||
|
@ -297,13 +298,7 @@ class kolab_notes_ui
|
||||||
*/
|
*/
|
||||||
public function notebookform($attrib)
|
public function notebookform($attrib)
|
||||||
{
|
{
|
||||||
if (is_object($this->folder)) {
|
$folder_name = $this->folder;
|
||||||
$folder_name = $this->folder->name; // UTF7
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$folder_name = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$hidden_fields[] = array('name' => 'oldname', 'value' => $folder_name);
|
$hidden_fields[] = array('name' => 'oldname', 'value' => $folder_name);
|
||||||
|
|
||||||
$storage = $this->rc->get_storage();
|
$storage = $this->rc->get_storage();
|
||||||
|
|
Loading…
Add table
Reference in a new issue