* [bug#54153,done,1h] Get name.
This commit is contained in:
@@ -134,7 +134,7 @@ class pivotModel extends model
|
||||
if(!empty($pivot->name))
|
||||
{
|
||||
$pivotNames = json_decode($pivot->name, true);
|
||||
$pivot->name = zget($pivotNames, $this->app->getClientLang(), '') ? : reset($pivotNames);
|
||||
$pivot->name = zget($pivotNames, $this->app->getClientLang(), '') ? : reset(array_filter($pivotNames));
|
||||
$pivot->names = $pivotNames;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user