mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Correzioni minori
This commit is contained in:
@@ -91,15 +91,13 @@ if (!empty($query)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Rimuovo risultati con id a null
|
|
||||||
foreach ( $rows as $i => $r ) {
|
|
||||||
if ( empty($r['id'] ) ) {
|
|
||||||
unset($rows[$i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creazione della tabella
|
// Creazione della tabella
|
||||||
foreach ($rows as $i => $r) {
|
foreach ($rows as $i => $r) {
|
||||||
|
// Evitare risultati con id a null
|
||||||
|
if (empty($r['id'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$result = [
|
$result = [
|
||||||
'id' => $r['id'],
|
'id' => $r['id'],
|
||||||
'<span class="hide" data-id="'.$r['id'].'"></span>', // Colonna ID
|
'<span class="hide" data-id="'.$r['id'].'"></span>', // Colonna ID
|
||||||
|
@@ -419,7 +419,7 @@ if ($read_only || !empty($block_edit)) {
|
|||||||
';
|
';
|
||||||
|
|
||||||
//Nascondo il plugin note interne ai clienti
|
//Nascondo il plugin note interne ai clienti
|
||||||
if( $user->gruppo=="Clienti" ){
|
if ($user->gruppo == 'Clienti') {
|
||||||
echo '
|
echo '
|
||||||
$("#link-tab_note").hide();';
|
$("#link-tab_note").hide();';
|
||||||
}
|
}
|
||||||
|
@@ -287,7 +287,7 @@ echo '
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
//Nascondo le note interne ai clienti
|
//Nascondo le note interne ai clienti
|
||||||
if( $user->gruppo!="Clienti" ){
|
if ($user->gruppo != 'Clienti') {
|
||||||
echo '
|
echo '
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{[ "type": "textarea", "label": "'.tr('Note interne').'", "name": "informazioniaggiuntive", "class": "autosize", "value": "$informazioniaggiuntive$", "extra": "rows=\'5\'" ]}
|
{[ "type": "textarea", "label": "'.tr('Note interne').'", "name": "informazioniaggiuntive", "class": "autosize", "value": "$informazioniaggiuntive$", "extra": "rows=\'5\'" ]}
|
||||||
|
Reference in New Issue
Block a user