File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 136136 $ insert ['idmodule_from ' ] = Module::where ('name ' , $ info ['module_from ' ])->first ()->id ;
137137 $ insert ['idmodule_to ' ] = Module::where ('name ' , $ info ['module_to ' ])->first ()->id ;
138138 $ insert ['position ' ] = $ info ['position ' ];
139+ $ insert ['default ' ] = 0 ;
139140 }
140141
141142 // Templates
148149 $ insert ['is_record ' ] = $ info ['is_record ' ];
149150 $ insert_lang ['filename ' ] = $ info ['filename ' ];
150151 $ insert ['icon ' ] = $ info ['icon ' ];
152+ $ insert ['predefined ' ] = 0 ;
153+ }
154+
155+ // Modules
156+ else {
157+ $ insert ['default ' ] = 0 ;
151158 }
152159
153160 // Copia dei file nella cartella relativa
166173 'version ' => $ info ['version ' ],
167174 'compatibility ' => $ info ['compatibility ' ],
168175 'order ' => 100 ,
169- 'default ' => 0 ,
170176 'enabled ' => 1 ,
171177 ]));
172178 $ id_record = $ dbo ->lastInsertedID ();
191197 'is_record ' => $ insert ['is_record ' ],
192198 'icon ' => $ insert ['icon ' ],
193199 'order ' => 100 ,
194- 'default ' => 0 ,
195200 'enabled ' => 1 ,
196201 ]));
197202 $ id_record = $ dbo ->lastInsertedID ();
You can’t perform that action at this time.
0 commit comments