Ignore:
Timestamp:
Jan 3, 2015, 7:34:55 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Form class ItemActions changed to define URL using #RowId instead of addition of &i=number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r719 r721  
    377377      foreach($FormClass['ItemActions'] as $Action)
    378378      {
    379         $URL = $this->System->Link($Action['URL']);
    380         if(strpos($URL, '?') === false) $URL .= '?';
    381         else if((substr($URL, -5, 5) !== '&') and (substr($URL, -1, 1) !== '?')) $URL .= '&';
    382         $URL .= 'i='.$Id;
     379        $URL = str_replace('#RowId', $Id, $this->System->Link($Action['URL']));
    383380        $Actions[] = $this->ShowAction($Action['Caption'], $URL,
    384381          $this->System->Link('/images/action.png'));
     
    643640      {
    644641        $URL = $this->System->Link($Action['URL']);
    645         if(strpos($URL, '?') === false) $URL .= '?';
    646         else if((substr($URL, -5, 5) !== '&') and (substr($URL, -1, 1) !== '?')) $URL .= '&';
    647         $URL .= 'i=#RowId';
    648642        $RowActions .= '<a href="'.$URL.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'.
    649643          $this->System->Link('/images/action.png').'"/></a>';
Note: See TracChangeset for help on using the changeset viewer.