Skip to content

Commit

Permalink
fixes agriya#1 : Unwanted code has removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
vibbulan committed Jun 24, 2019
1 parent 11ed24b commit 4403432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/Config/cms_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function _pluginBuilder($plugin){
$pluginName = Inflector::camelize($plugin);
if (!file_exists(APP . 'Plugin' . DS . $pluginName)) {
CakeLog::write(LOG_ERR, 'Plugin not found during bootstrap: ' . $pluginName);
continue;
}
$bootstrapFile = APP . 'Plugin' . DS . $pluginName . DS . 'Config' . DS . 'bootstrap.php';
$bootstrap = file_exists($bootstrapFile);
Expand Down
2 changes: 1 addition & 1 deletion app/Plugin/Items/Controller/ItemsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ public function add($request = null, $request_id = null)
$check_price = true;
$check_price_type = true;
if(isset($custom_price_pre_night['id']) && !isset($custom_price_pre_night['start_date'])) {
continue;

}
if (!empty($this->request->data['Item']['is_have_definite_time']) && (!empty($this->request->data['Item']['is_people_can_book_my_time']) || !empty($this->request->data['Item']['is_sell_ticket']))) {
if (!empty($this->request->data['Item']['is_sell_ticket']) && !empty($this->request->data['CustomPricePerNight']['SellTicket'])) {
Expand Down

0 comments on commit 4403432

Please sign in to comment.