Changeset 4579

Show
Ignore:
Timestamp:
07/27/07 23:16:16 (1 year ago)
Author:
p_lindheimer
Message:

#1920: changed miscapps so editting always changes the default code and not
the custom code in that may be defined in featurcodes. This means if featurecodes
is using the default and you change it here, the change will take place. If it
is using a custom code and you change it here, it will continue to use that custom
code but the default in the featurecodes table will now be this new code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/miscapps/functions.inc.php

    r3363 r4579  
    7272        // we want to get the ext from featurecodes 
    7373        $fc = new featurecode('miscapps', 'miscapp_'.$row['miscapps_id']); 
    74         $row['ext'] = $fc->getCode(); 
     74        $row['ext'] = $fc->getDefault(); 
    7575        $row['enabled'] = $fc->isEnabled(); 
    7676 
     
    126126        $fc = new featurecode('miscapps', 'miscapp_'.$miscapps_id); 
    127127        $fc->setDescription($description); 
    128         $fc->setCode($ext); 
     128        $fc->setDefault($ext, true); 
    129129        $fc->update(); 
    130130} 
     131?> 
    131132 
    132 ?> 
  • modules/branches/2.3/miscapps/module.xml

    r4246 r4579  
    22        <rawname>miscapps</rawname> 
    33        <name>Misc Applications</name> 
    4         <version>0.2.2</version> 
     4        <version>0.2.3</version> 
    55        <type>setup</type> 
    66        <category>Internal Options &amp; Configuration</category> 
     
    1212        </menuitems> 
    1313        <changelog> 
     14                *0.2.3* #1902 miscapp always sets/pulls default code now regardless of custom override in featurecodes 
    1415                *0.2.2* added SQLite3 support, fixes http://freepbx.org/trac/ticket/1775 
    1516                *0.2.1.1* changed freePBX to FreePBX 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads