Project

General

Profile

Bug #414

Code never executed

Added by Marc Ducobu about 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
02/17/2015
Due date:
% Done:

0%


Description

This for loop is never executed : https://redmine.champs-libres.coop/projects/customform/repository/revisions/master/entry/Service/CustomFieldsHelper.php#L57

    /**
     * 
     * @param object|string $class
     */
    private function _cacheCustomFields($class)
    {
        $customFieldsGroups = $this->em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')
            ->findBy(array('entity' => (is_string($class)) ? $class : get_class($class)));

        if (!$customFieldsGroups) {
            throw CustomFieldsHelperException::customFieldsGroupNotFound((is_string($class)) ? $class : get_class($class));
        }

        foreach ($customFieldsGroup as $cfGroup) {
            $this->_cacheCustomFields($cfGroup);
        }
    }

To remove ?

What is the utility of this function ? What is the $class variable (a CustomFieldsGroup ?)

History

#1 Updated by Julien Fastré about 3 years ago

  • Assignee deleted (Julien Fastré)

Also available in: Atom PDF