Subversion Repositories SmartDukaan

Rev

Rev 14561 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14561 Rev 15848
Line 129... Line 129...
129
		}
129
		}
130
		return $this->redirect(array('action' => 'index'));
130
		return $this->redirect(array('action' => 'index'));
131
	}
131
	}
132
 
132
 
133
	public function admin_deletedp($id = null) {		
133
	public function admin_deletedp($id = null) {		
134
		if ($this->remove($id,'SkuDealerPrices')) {
134
		$response = $this->remove($id,'SkuDealerPrices');
-
 
135
		if ($response) {
135
			$this->Session->setFlash(__('The sku scheme deal has been deleted.'));
136
			$this->Session->setFlash(current($response));
136
		} else {
137
		} else {
137
			// $this->Session->setFlash(__('The sku scheme could not be deleted. Please, try again.'));
138
			$this->Session->setFlash(current($response));
138
		}
139
		}
139
		return $this->redirect(array('action' => 'index'));
140
		return $this->redirect(array('action' => 'admin_dp'));
140
	}
141
	}
141
	
142
	
142
	public function admin_dp(){		
143
	public function admin_dp(){		
143
		$page = $this->request->query('page');
144
		$page = $this->request->query('page');
144
		if(!isset($page)){
145
		if(!isset($page)){