mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Compare commits
3 Commits
44f6c54a5e
...
3d89062de8
Author | SHA1 | Date | |
---|---|---|---|
|
3d89062de8 | ||
|
51b8fc1abc | ||
|
5c1c093fd7 |
@ -12,7 +12,7 @@ switch (post('op')) {
|
||||
$descrizione = post('descrizione');
|
||||
|
||||
if ($dbo->fetchNum('SELECT targa FROM an_sedi WHERE targa='.prepare($targa).' AND NOT id='.prepare($id_record)) == 0) {
|
||||
$query = 'UPDATE an_sedi SET targa='.prepare($targa).', descrizione='.prepare($descrizione).', nome='.prepare($nome).' WHERE id='.prepare($id_record);
|
||||
$query = 'UPDATE an_sedi SET targa='.prepare($targa).', descrizione='.prepare($descrizione).', nome='.prepare($nome).', nomesede='.prepare($nome.' - '.$targa).' WHERE id='.prepare($id_record);
|
||||
if ($dbo->query($query)) {
|
||||
flash()->info(tr('Informazioni salvate correttamente!'));
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ if (!empty($elementi)) {
|
||||
'_DATE_' => Translator::dateToLocale($elemento['data']),
|
||||
]);
|
||||
|
||||
if ($elemento['tipo_documento'] == 'Intervento') {
|
||||
if ($elemento['tipo_documento'] == 'Attività') {
|
||||
$modulo = 'Interventi';
|
||||
} else {
|
||||
$modulo = 'Contratti';
|
||||
|
@ -37,7 +37,7 @@ $anagrafica = $intervento->anagrafica;
|
||||
if ($intervento->idsede_destinazione) {
|
||||
$sede = $dbo->selectOne('an_sedi', '*', ['id' => $intervento->idsede_destinazione]);
|
||||
} else {
|
||||
$sede = $anagrafica->toArray();
|
||||
$sede = $anagrafica ? $anagrafica->toArray() : null;
|
||||
}
|
||||
|
||||
// Referente
|
||||
|
Loading…
x
Reference in New Issue
Block a user