Skip to content

Commit fd7f020

Browse files
committed
fix: risolta inaggiornabilità/installabilità moduli con templates
1 parent d8b4429 commit fd7f020

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

modules/aggiornamenti/upload_modules.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
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
@@ -148,6 +149,12 @@
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
@@ -166,7 +173,6 @@
166173
'version' => $info['version'],
167174
'compatibility' => $info['compatibility'],
168175
'order' => 100,
169-
'default' => 0,
170176
'enabled' => 1,
171177
]));
172178
$id_record = $dbo->lastInsertedID();
@@ -191,7 +197,6 @@
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();

0 commit comments

Comments
 (0)