Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 3eb44ec3

Přidáno uživatelem Filip Jani před téměř 6 roky(ů)

Re #7505 automatické otevření stromu pokud obsahuje hodnoty

Zobrazit rozdíly:

app/model/facade/TransliterationFacade.php
82 82
            $objectType = $objectTypes[$surface->{SurfaceRepository::COLUMN_OBJECT_TYPE_ID}];
83 83

  
84 84
            $objectName = $this->getInputName($objectType);
85
            $surfaceName = $this->getInputName($objectType, $surfaceType);
85
            $surfaceName = $this->getInputName($surfaceType);
86 86

  
87 87
            $defaults[$objectName][$surfaceName] = $lineRows;
88 88
        }
......
93 93
    /**
94 94
     * Vrací název inputu pro formulář
95 95
     *
96
     * @param string $container
97 96
     * @param string|NULL $name
98 97
     * @return string
99 98
     */
100
    public function getInputName(string $container, string $name = NULL)
99
    public function getInputName(string $name)
101 100
    {
102
        return str_replace(' ', '', $container) . str_replace(' ', '', $name);
101
        return str_replace(' ', '', $name);
103 102
    }
104 103
}

Také k dispozici: Unified diff