Changeset 12928

Show
Ignore:
Timestamp:
07/09/09 09:16:06 (7 months ago)
Author:
asha
Message:

Following changes integrated - Asha
=====================================

1. Fixed an issue in HelpDesk? module where save_related_module should be called on the calling module instance
2. Changed isset to !empty in install.php
3. Re-phrased the 'Click left icon' statement in Installation process for Pre-Migration tools
4. Changed requireSingleResult api call to requirePsSingleResult in authenticate_user api of Users module
5. Used vtlib_purify for the Global search 'Query String' while displaying
6. Typo fixed in migration wizard

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vtigercrm/branches/5.1/install.php

    r12906 r12928  
    4040} 
    4141                         
    42 if (isset($_REQUEST['file'])) $the_file = $_REQUEST['file']; 
     42if (!empty($_REQUEST['file'])) $the_file = $_REQUEST['file']; 
    4343else $the_file = "welcome.php"; 
    4444 
  • vtigercrm/branches/5.1/install/PreMigrationActions.php

    r12914 r12928  
    179179                                                                                                                                                <td valign="top" class="mediumLineHeight"> 
    180180                                                                                                                                                        <b>Have not taken the database backup yet?</b><br> 
    181                                                                                                                                                         <b>&#171; Click</b> on the icon left now to start the dump and <b>Save</b> the copy of output.<br><br> 
     181                                                                                                                                                        <b>&#171; Click</b> on the left icon to start the dump and <b>Save</b> the copy of output.<br><br> 
    182182                                                                                                                                                        <div class="helpmessagebox"><b>Note</b>:<br> This process may take longer time depending on the database size.</div> 
    183183                                                                                                                                                </td> 
     
    197197                                                                                                                                                <td valign="top" class="mediumLineHeight"> 
    198198                                                                                                                                                        <b>Are you migrating to new database?</b><br> 
    199                                                                                                                                                         <b>&#171; Click</b> on the icon left to proceed if you have not setup new database with earlier data.                                                                                                                                                  
     199                                                                                                                                                        <b>&#171; Click</b> on the left icon to proceed if you have not setup new database with earlier data.                                                                                                                                                  
    200200                                                                                                                                                        <br><br> 
    201201                                                                                                                                                        <div class="helpmessagebox"><b>Recommended</b>:<br> 
  • vtigercrm/branches/5.1/install/SetMigrationConfig.php

    r12915 r12928  
    230230                                                                                        </tr> 
    231231                                                                                        <tr> 
    232                                                                                                 <td width = 35%>Database Name for Migraiton<sup><font color=red>*</font></sup></td> 
     232                                                                                                <td width = 35%>Database Name for Migration<sup><font color=red>*</font></sup></td> 
    233233                                                                                                <td align="left"><input class="small" type="text" name="new_dbname" id="new_dbname" value="" size="50" /> </td> 
    234234                                                                                        </tr> 
  • vtigercrm/branches/5.1/modules/HelpDesk/HelpDesk.php

    r12877 r12928  
    124124                if ($return_action && $for_module && $for_crmid) { 
    125125                        if ($for_module != 'Accounts' && $for_module != 'Contacts' && $for_module != 'Products') { 
    126                                 parent::save_related_module($for_module, $for_crmid, $module, $this->id); 
     126                                $on_focus = CRMEntity::getInstance($for_module); 
     127                                $on_focus->save_related_module($for_module, $for_crmid, $module, $this->id); 
    127128                        } 
    128129                }                                
  • vtigercrm/branches/5.1/modules/Home/UnifiedSearch.php

    r12877 r12928  
    6969                                $smarty->assign("SEARCH_MODULE",vtlib_purify($_REQUEST['search_module'])); 
    7070                                $smarty->assign("SINGLE_MOD",$module); 
    71                                 $smarty->assign("SEARCH_STRING",$search_val); 
     71                                $smarty->assign("SEARCH_STRING",vtlib_purify($search_val)); 
    7272                 
    7373                                $listquery = getListQuery($module); 
  • vtigercrm/branches/5.1/modules/Users/Users.php

    r12877 r12928  
    306306                $usr_name = $this->column_fields["user_name"]; 
    307307 
    308                 $query = "SELECT * from $this->table_name where user_name='$usr_name' AND user_hash='$password'"; 
    309                 $result = $this->db->requireSingleResult($query, false); 
     308                $query = "SELECT * from $this->table_name where user_name=? AND user_hash=?"; 
     309                $params = array($usr_name, $password); 
     310                $result = $this->db->requirePsSingleResult($query, $params, false); 
    310311 
    311312                if(empty($result)){