Table prefixes not being added to indexes (#597)

* Enabled prefixes on any created indexes (multi-site install in single db)

* Formatting

* Check if enum label is looking for a translation

* Return value

* Fix view namespace across modules
This commit is contained in:
Nabeel S
2020-02-28 18:56:01 -05:00
committed by GitHub
parent 2f40f4737c
commit b0f122a301
11 changed files with 103 additions and 122 deletions

View File

@@ -46,7 +46,12 @@ abstract class Enum
final public static function label($value)
{
if (isset(static::$labels[$value])) {
return trans(static::$labels[$value]);
$val = static::$labels[$value];
if (strpos($val, '.') !== false) {
return trans($val);
}
return $val;
}
}