Changeset 13983 for modules

Show
Ignore:
Timestamp:
04/20/12 03:26:36 (1 year ago)
Author:
mbrevda
Message:

fixes #5784, show directory list after save of ivr

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/directory/functions.inc.php

    r13956 r13983  
    8989function directory_configpageinit($pagename) { 
    9090  global $currentcomponent; 
    91   if($pagename == 'directory')
     91  if ($pagename == 'directory')
    9292    $currentcomponent->addprocessfunc('directory_configprocess'); 
    9393    $currentcomponent->addguifunc('directory_configpageload'); 
    94     return true; 
    95   } 
    96   if($pagename == 'ivr'){ 
    97     $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; 
    98     if ($action && ($action  == 'add' || $action  == 'edit')) { 
     94      return true; 
     95  } 
     96  if ($pagename == 'ivr') { 
     97    $action = isset($_REQUEST['action'])  
     98        ? $_REQUEST['action'] : ''; 
     99    $id   = isset($_REQUEST['id'])  
     100        ? $_REQUEST['id'] : ''; 
     101    if ($action || $id) { 
    99102      //add help text 
    100103      $currentcomponent->addgeneralarrayitem('directdial_help', 'directory',