mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Merge pull request #1794 from jygaulier/PHRAS-1055_rebase-4.0
PHRAS-1055 backport to 4.0
This commit is contained in:
@@ -179,14 +179,13 @@ class BuildSubdefs extends Command
|
||||
|
||||
if($this->databox !== null) {
|
||||
|
||||
/** @var SubdefGroup $sg */
|
||||
foreach ($this->databox->get_subdef_structure() as $sg) {
|
||||
if (empty($types) || in_array($sg->getName(), $types)) {
|
||||
$this->subdefsNameByType[$sg->getName()] = [];
|
||||
foreach ($this->databox->get_subdef_structure() as $sgname=>$sg) {
|
||||
if (empty($types) || in_array($sgname, $types)) {
|
||||
$this->subdefsNameByType[$sgname] = [];
|
||||
/** @var databox_subdef $sd */
|
||||
foreach ($sg as $sd) {
|
||||
if (empty($names) || in_array($sd->get_name(), $names)) {
|
||||
$this->subdefsNameByType[$sg->getName()][] = $sd->get_name();
|
||||
$this->subdefsNameByType[$sgname][] = $sd->get_name();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user