mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 20:10:50 +01:00
Fix Liste
This commit is contained in:
parent
87a742be05
commit
4cd7fa2ba6
@ -60,7 +60,7 @@ switch (filter('op')) {
|
|||||||
flash()->error(tr('Esiste già una lista con questo nome.'));
|
flash()->error(tr('Esiste già una lista con questo nome.'));
|
||||||
} else {
|
} else {
|
||||||
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
|
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
|
||||||
$lista->name = $descrizione;
|
$lista->name = $name;
|
||||||
}
|
}
|
||||||
$lista->setTranslation('title', $name);
|
$lista->setTranslation('title', $name);
|
||||||
$lista->setTranslation('description', $description);
|
$lista->setTranslation('description', $description);
|
||||||
|
@ -62,7 +62,6 @@ class Lista extends Model
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Ricerca nuovi record
|
// Ricerca nuovi record
|
||||||
$number = $database->fetchNum($query);
|
|
||||||
$database->query('INSERT INTO em_list_receiver (id_list, record_id, record_type) '.preg_replace('/'.preg_quote('SELECT', '/').'/', 'SELECT '.prepare($this->id).',', $query, 1));
|
$database->query('INSERT INTO em_list_receiver (id_list, record_id, record_type) '.preg_replace('/'.preg_quote('SELECT', '/').'/', 'SELECT '.prepare($this->id).',', $query, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user