Subversion Repositories SmartDukaan

Rev

Rev 14685 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14685 Rev 15848
Line 107... Line 107...
107
 * @param string $id
107
 * @param string $id
108
 * @return void
108
 * @return void
109
 */
109
 */
110
	
110
	
111
	public function admin_delete($id = null) {		
111
	public function admin_delete($id = null) {		
112
		if ($this->remove($id,'ExceptionalNlc')) {
112
		$response = $this->remove($id,'ExceptionalNlc');
-
 
113
		if ($response) {
113
			$this->Session->setFlash(__('The sku scheme deal has been deleted.'));
114
			$this->Session->setFlash(current($response));
114
		} else {
115
		} else {
115
			$this->Session->setFlash(__('The sku scheme could not be deleted. Please, try again.'));
116
			$this->Session->setFlash(current($response));
116
		}
117
		}
117
		return $this->redirect(array('action' => 'index'));
118
		return $this->redirect(array('action' => 'index'));
118
	}
119
	}
119
}
120
}