Areatrigger/Names

* fix unnamed areatrigger after fetching them from DB and not clientside
Mail/Names
 * fix unnamed mails after fetching them from DB and not clientside
This commit is contained in:
Sarjuuk
2020-02-24 01:46:50 +01:00
parent 3ff855afe8
commit aa66a7644b
12 changed files with 23 additions and 21 deletions

View File

@@ -18,6 +18,15 @@ class AreaTriggerList extends BaseType
's' => ['j' => ['?_spawns s ON s.type = 503 AND s.typeId = a.id', true], 's' => ', s.areaId']
);
public function __construct($conditions)
{
parent::__construct($conditions);
foreach ($this->iterate() as $id => &$_curTpl)
if (!$_curTpl['name'])
$_curTpl['name'] = 'Unnamed Areatrigger #' . $id;
}
public function getListviewData()
{
$data = [];