Skip to content

Commit

Permalink
多言語化対応(is_original_copyフィールド追加)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Jan 17, 2017
1 parent bca12ac commit 0145112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ public function bindModelBlockLang($joinKey = 'Block.id') {
'BlocksLanguage.language_id' => Current::read('Language.id', '0'),
),
),
'fields' => array('language_id', 'block_id', 'name', 'is_origin', 'is_translation'),
'fields' => array(
'language_id', 'block_id', 'name', 'is_origin', 'is_translation', 'is_original_copy'
),
'order' => ''
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public function testGetBlockConditions($conditions, $model) {
'name' => 'Block name 1',
'is_origin' => true,
'is_translation' => false,
'is_original_copy' => false,
),
),
1 => array(
Expand Down Expand Up @@ -185,6 +186,7 @@ public function testGetBlockConditions($conditions, $model) {
'name' => 'Block name 1',
'is_origin' => true,
'is_translation' => false,
'is_original_copy' => false,
),
),
);
Expand Down

0 comments on commit 0145112

Please sign in to comment.