We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69c68a commit 23d8459Copy full SHA for 23d8459
1 file changed
modules/tipi_intervento/actions.php
@@ -79,7 +79,6 @@
79
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
80
$tipo->name = $descrizione;
81
}
82
- $id_record = $dbo->lastInsertedID();
83
$tipo->setTranslation('title', post('descrizione'));
84
$tipo->save();
85
@@ -90,7 +89,7 @@
90
89
foreach ($fasce_orarie as $fascia_oraria) {
91
$dbo->insert('in_fasceorarie_tipiintervento', [
92
'idfasciaoraria' => $fascia_oraria['id'],
93
- 'idtipointervento' => $id_record,
+ 'idtipointervento' => $tipo->id,
94
'costo_orario' => post('costo_orario'),
95
'costo_km' => post('costo_km'),
96
'costo_diritto_chiamata' => post('costo_diritto_chiamata'),
0 commit comments