Skip to content

Commit

Permalink
Merge pull request #83 from NetCommons3/fix/past_registration
Browse files Browse the repository at this point in the history
Fix/past registration
  • Loading branch information
s-nakajima committed Oct 8, 2023
2 parents aeed944 + be81f2f commit 9875f4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Controller/RegistrationAddController.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function add() {

// 過去データ 取り出し
$conditions = Hash::remove($this->Registration->getBaseCondition(), 'block_id');
unset($conditions['Registration.block_id']);
$conditions['Block.room_id'] = Current::read('Room.id');
$pastRegistrations = $this->Registration->find('all',
array(
Expand Down
7 changes: 4 additions & 3 deletions Model/ActionRegistrationAdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public function checkPastRegistration($check) {
'Registration.id' => $check['past_registration_id']
));
unset($baseCondition['block_id']);
unset($baseCondition['Registration.block_id']);
$cnt = $this->Registration->find('count', array(
'conditions' => $baseCondition,
'recursive' => -1
Expand Down Expand Up @@ -258,11 +259,11 @@ protected function _getRegistrationCloneById($registrationId) {
return $registration;
}
/**
* _copyWysiwygFiles
*
* _copyWysiwygFiles
*
* 引数で指定された登録フォームの中を分析し、
* ウィジウィグに設定されているファイルは複製を作ります
*
*
* @param array $registration 登録フォームデータ
* @return array $registration 複製を作り終えた登録フォームデータ
*/
Expand Down

0 comments on commit 9875f4b

Please sign in to comment.