Compare commits
3 Commits
63dde5e2c2
...
e05bd4d0d5
Author | SHA1 | Date |
---|---|---|
FabioL | e05bd4d0d5 | |
FabioL | ea700d360a | |
pek5892 | 7d22fbede5 |
|
@ -136,7 +136,7 @@ const JS = gulp.parallel(() => {
|
|||
})
|
||||
.pipe(babel(config.babelOptions))
|
||||
.pipe(concat('app.min.js'))
|
||||
.pipe(gulpIf(!config.debug, minifyJS()))
|
||||
.pipe(gulpIf(!config.debug, minifyJS({compress:false})))
|
||||
.pipe(gulp.dest(config.production + '/' + config.paths.js));
|
||||
}, srcJS);
|
||||
|
||||
|
|
|
@ -502,12 +502,13 @@ if (Auth::check()) {
|
|||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">';
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">';
|
||||
echo Modules::getMainMenu();
|
||||
echo '
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- / Sidebar Menu -->
|
||||
</div>
|
||||
</aside>';
|
||||
|
||||
$in_editor = string_contains($_SERVER['SCRIPT_FILENAME'], 'editor.php');
|
||||
|
|
|
@ -24,7 +24,7 @@ use Modules\Checklists\Check;
|
|||
|
||||
$op = post('op');
|
||||
|
||||
$upload_dir = base_dir().'/files/'.Module::find((new Module())->getByField('title', 'Anagrafiche', Models\Locale::getPredefined()->id))->directory;
|
||||
$upload_dir = base_dir().'/files/'.Module::find((new Module())->getByField('title', 'Impianti', Models\Locale::getPredefined()->id))->directory;
|
||||
$id_modulo_categorie_impianti = (new Module())->getByField('title', 'Categorie impianti', Models\Locale::getPredefined()->id);
|
||||
|
||||
switch ($op) {
|
||||
|
@ -81,7 +81,7 @@ switch ($op) {
|
|||
}
|
||||
|
||||
// Eliminazione file
|
||||
if (post('delete_immagine') !== null) {
|
||||
if (!empty(post('delete_immagine'))) {
|
||||
Uploads::delete($record['immagine'], [
|
||||
'id_module' => $id_module,
|
||||
'id_record' => $id_record,
|
||||
|
|
Loading…
Reference in New Issue