Changeset 9417
- Timestamp:
- 03/27/10 17:44:02 (3 years ago)
- Files:
-
- modules/branches/2.7 (modified) (1 prop)
- modules/branches/2.7/cidlookup/functions.inc.php (modified) (3 diffs)
- modules/branches/2.7/cidlookup/module.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7
- Property svnmerge-integrated changed from /modules/branches/2.6:1-8497,8589,8613,8620,8651,8672 /modules/branches/2.8:1-9044,9107,9122,9218,9366 to /modules/branches/2.6:1-8497,8589,8613,8620,8651,8672,9414-9416 /modules/branches/2.8:1-9044,9107,9122,9218,9366
modules/branches/2.7/cidlookup/functions.inc.php
r9407 r9417 121 121 switch($engine) { 122 122 case "asterisk": 123 $sources = cidlookup_list( );123 $sources = cidlookup_list(true); 124 124 if(is_array($sources)) { 125 125 foreach($sources as $item) { … … 246 246 } 247 247 248 function cidlookup_list() { 249 // TODO: discuss department isolation of sources 248 function cidlookup_list($all=false) { 250 249 $allowed = array(array('cidlookup_id' => 0, 'description' => _("None"), 'sourcetype' => null)); 251 250 $results = sql("SELECT * FROM cidlookup","getAll",DB_FETCHMODE_ASSOC); … … 253 252 foreach($results as $result){ 254 253 // check to see if we have a dept match for the current AMP User. 255 if ( checkDept($result['deptname'])){254 if ($all || checkDept($result['deptname'])){ 256 255 // return this item 257 256 $allowed[] = $result; modules/branches/2.7/cidlookup/module.xml
r9408 r9417 2 2 <rawname>cidlookup</rawname> 3 3 <name>Caller ID Lookup</name> 4 <version>2.7.0. 1</version>4 <version>2.7.0.2</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 18 18 <md5sum>45a30d653996845025a9ba510edde5b5</md5sum> 19 19 <changelog> 20 *2.7.0.2* #3979 20 21 *2.7.0.1* might effect #3979 21 22 *2.7.0.0* localizations
