gornostal / Modific

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
614 stars 44 forks source link

Multiple strFieldID with same value #63

Closed soderlind closed 10 years ago

soderlind commented 10 years ago

This doesn't work since strFieldID is the same for both sections (only the last will appear) , but I feel I should be able to use the same strFieldID value as long as they are in different sections (they are logically different since they are children of different sections).

Just my 2c :)

<?php
        $this->setRootMenuPage( 'Config'); 
        $this->addSubMenuPage(    
            'Production',
            'prod',
            'tools'
        );
        $this->addSettingSections(
            array(
                'strSectionID'    => 'conf_prod',
                'strPageSlug'    => 'prod',
                'strTitle'    => 'Production'
            )
        );        
        $this->addSettingFields(
            array(
                'strFieldID' => 'version',
                'strSectionID' => 'conf_prod',
                'strTitle' => 'Versionsnumber',    
                'strType' => 'text'
            )
        );
        $this->addSubMenuPage(    
            'Beta',
            'beta',
            'tools'
        );     
        $this->addSettingSections(
            array(
                'strSectionID'    => 'conf_beta',
                'strPageSlug'    => 'beta',
                'strTitle'    => 'Beta'
            )
        );        
        $this->addSettingFields(
            array(
                'strFieldID' => 'version',
                'strSectionID' => 'conf_beta',
                'strTitle' => 'Versionsnumber',    
                'strType' => 'text'
            )
        );
?>
gornostal commented 10 years ago

@soderlind how does this relate to Modific? :)

soderlind commented 10 years ago

Sorry .. wrong project :)