1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-31 07:55:17 +01:00

fix: #1546 modifica Marchi

This commit is contained in:
valentina 2024-12-06 09:20:50 +01:00
parent 6549f6bbbf
commit f4c40059ca
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ switch (post('op')) {
$nome = filter('name');
$link = filter('link');
$marchio_new = Marchio::where('name', '=', $nome)->first();
$marchio_new = Marchio::where('name', '=', $nome)->where('id', '!=', $id_record)->first();
if (!empty($marchio_new)) {
flash()->error(tr('Questo nome è già stato utilizzato per un altro marchio.'));

View File

@ -48,7 +48,7 @@ include_once __DIR__.'/../../core.php';
$articoli = $marchio->articoli;
$class = '';
if (!empty($articoli)) {
if (!empty(count($articoli))) {
echo '
<div class="card card-warning collapsable collapsed-card">
<div class="card-header with-border">