Subversion Repositories SmartDukaan

Rev

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

Rev 14533 Rev 14561
Line 72... Line 72...
72
					unset($this->request->data['FeaturedDeal']['rankDetails'][$key]);
72
					unset($this->request->data['FeaturedDeal']['rankDetails'][$key]);
73
				}
73
				}
74
			}
74
			}
75
			$this->log(print_r($this->request->data,1),'featuredeals');
75
			$this->log(print_r($this->request->data,1),'featuredeals');
76
			$url = $this->apihost."featuredDeals/addFeaturedDeals";
76
			$url = $this->apihost."featuredDeals/addFeaturedDeals";
-
 
77
			$data = $this->request->data['FeaturedDeal'];
-
 
78
			$url = $this->generateMultiUrl($url,$data);
77
			$jsonVar = json_encode($this->request->data['FeaturedDeal'], JSON_NUMERIC_CHECK );
79
			$jsonVar = json_encode($data, JSON_NUMERIC_CHECK );
78
			$response = $this->make_request($url,$jsonVar);
80
			$response = $this->make_request($url,$jsonVar);
79
			if (key($response)) {
81
			if (key($response)) {
80
				$this->Session->setFlash(current($response));
82
				$this->Session->setFlash(current($response));
81
				return $this->redirect(array('action' => 'index'));
83
				return $this->redirect(array('action' => 'index'));
82
			} else {
84
			} else {