protected function submitEditCollectionItem()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCollectionItem();
        } else if ($this->isPosted('save') && $this->validateEditCollectionItem()) {
            if (isset($this->data_collection_item['collection_item_id'])) {
                $this->updateCollectionItem();
            } else {
                $this->addCollectionItem();
            }
        }
    }