File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ private function __saveBlock(Model $model, $frame) {
267267 $ model ->data ['Block ' ]['plugin_key ' ] = Inflector::underscore ($ model ->plugin );
268268
269269 //blocksの登録
270+ $ model ->Block ->create (null );
270271 $ block = $ model ->Block ->save ($ model ->data ['Block ' ], false );
271272 if (! $ block ) {
272273 throw new InternalErrorException (__d ('net_commons ' , 'Internal Server Error ' ));
@@ -302,6 +303,7 @@ private function __saveBlock(Model $model, $frame) {
302303 );
303304 $ model ->data ['BlocksLanguage ' ] = Hash::insert ($ model ->data ['BlocksLanguage ' ], 'modified ' , null );
304305
306+ $ model ->BlocksLanguage ->create (null );
305307 $ blockLanguage = $ model ->BlocksLanguage ->save ($ model ->data ['BlocksLanguage ' ], false );
306308 if (! $ blockLanguage ) {
307309 throw new InternalErrorException (__d ('net_commons ' , 'Internal Server Error ' ));
You can’t perform that action at this time.
0 commit comments