1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-17 03:51:06 +01:00
This commit is contained in:
Thomas Zilio 2019-01-16 16:26:19 +01:00
parent a630cab4b5
commit 1a9efa7568
2 changed files with 5 additions and 2 deletions

View File

@ -135,7 +135,9 @@ switch (post('op')) {
}
$intervento->id_preventivo = post('$idpreventivo');
$intervento->richiesta = post('richiesta');
$intervento->richiesta = $richiesta;
$intervento->save();
// Collego l'intervento al contratto
if (!empty($idcontratto)) {

View File

@ -6,7 +6,8 @@ use Common\Model;
class Stato extends Model
{
public $primaryKey = 'idstatointervento';
public $incrementing = false;
protected $primaryKey = 'idstatointervento';
protected $table = 'in_statiintervento';
public function interventi()