Merge branch 'coupons' of https://github.com/roadster31/thelia into coupons

Conflicts:
	core/lib/Thelia/Controller/Admin/CouponController.php
	templates/backOffice/default/coupon/form.html
This commit is contained in:
Franck Allimant
2014-05-02 17:16:39 +02:00

View File

@@ -247,8 +247,9 @@ class CouponController extends BaseAdminController
*/ */
public function getConditionEmptyInputAjaxAction($conditionId) public function getConditionEmptyInputAjaxAction($conditionId)
{ {
if (null !== $response = $this->checkAuth(AdminResources::COUPON, [], AccessManager::VIEW)) if (null !== $response = $this->checkAuth(AdminResources::COUPON, [], AccessManager::VIEW)) {
return $response; return $response;
}
$this->checkXmlHttpRequest(); $this->checkXmlHttpRequest();
@@ -282,7 +283,7 @@ class CouponController extends BaseAdminController
[ [
'inputsDrawn' => $html, 'inputsDrawn' => $html,
'conditionServiceId' => $serviceId, 'conditionServiceId' => $serviceId,
'conditionIndex' => '', 'conditionIndex' => ''
] ]
); );
} }
@@ -800,7 +801,6 @@ class CouponController extends BaseAdminController
) )
); );
} }
protected function getDefaultDateFormat() protected function getDefaultDateFormat()
{ {
return LangQuery::create()->findOneByByDefault(true)->getDateFormat(); return LangQuery::create()->findOneByByDefault(true)->getDateFormat();