protected function updateCollectionItem()
    {
        $this->controlAccess('collection_item_edit');

        if ($this->collection_item->update($this->data_collection_item['collection_item_id'], $this->getSubmitted())) {
            $url = "admin/content/collection-item/{$this->data_collection['collection_id']}";
            $this->redirect($url, $this->text('Collection item has been updated'), 'success');
        }

        $this->redirect('', $this->text('Collection item has not been updated'), 'warning');
    }
protected function updateCollectionItem()
    {
        $this->controlAccess('collection_item_edit');

        if ($this->collection_item->update($this->data_collection_item['collection_item_id'], $this->getSubmitted())) {
            $url = "admin/content/collection-item/{$this->data_collection['collection_id']}";
            $this->redirect($url, $this->text('Collection item has been updated'), 'success');
        }

        $this->redirect('', $this->text('Collection item has not been updated'), 'warning');
    }
protected function updateCollectionItem ( ) { $ this -> controlAccess ( 'collection_item_edit' ) ; if ( $ this -> collection_item -> update ( $ this -> data_collection_item [ 'collection_item_id' ] , $ this -> getSubmitted ( ) ) ) { $ url = "admin/content/collection-item/{$this->data_collection['collection_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'Collection item has been updated' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Collection item has not been updated' ) , 'warning' ) ; }
Update a submitted collection item
Update a submitted collection item